It worked! After fixing both instances:

$ diff -u config.rktd /etc/racket/config.rktd
--- config.rktd 2025-06-21 18:27:56.916934790 -0400
+++ /etc/racket/config.rktd     2025-06-21 13:33:06.281960282 -0400
@@ -1,7 +1,7 @@
 ;; generated by unixstyle-install
 #hash(
       (doc-dir . "/usr/share/doc/racket")
-      (lib-dir . "/usr/lib/x86_64-linux-gnu/racket")
+      (lib-dir . "/usr/lib/aarch64-linux-gnu/racket")
       (pkgs-dir . "/usr/share/racket/pkgs")
       (share-dir . "/usr/share/racket")
       (include-dir . "/usr/include/racket")
@@ -9,7 +9,7 @@
       (apps-dir . "/usr/share/applications")
       (man-dir . "/usr/share/man")
       (absolute-installation? . #t)
-      (compiled-file-roots . (same
"/usr/lib/x86_64-linux-gnu/racket/compiled"))
+      (compiled-file-roots . (same
"/usr/lib/aarch64-linux-gnu/racket/compiled"))
       (build-stamp . "")
       (doc-search-url . "
https://download.racket-lang.org/releases/8.16/doc/local-redirect/index.html
")
       (catalogs . ("https://download.racket-lang.org/releases/8.16/catalog/";
#f))

Racket is now 60 times faster!

$ time /usr/bin/racket -e "(exit)"

real    0m3.036s
user    0m2.317s
sys     0m0.582s

Thanks, David.


On Sat, Jun 21, 2025 at 1:24 PM David Bremner <[email protected]> wrote:

> Humberto Ortiz-Zuazaga <[email protected]> writes:
>
> > I rolled racket back to v8.7 [cs] (from snapshot.debian.org), and the
> > performance is as expected:
> >
> > $ /usr/bin/racket --version
> > Welcome to Racket v8.7 [cs].
> > $ time /usr/bin/racket -e '(exit)'
> >
> > real    0m2.667s
> > user    0m2.179s
> > sys     0m0.436s
>
> Can you try editing /etc/racket/config.rktd, and changing the
> appropriate line to
>
>  (compiled-file-roots . (same
> "/usr/lib/aarch64-linux-gnu/racket/compiled"))
>
>

-- 
Humberto Ortiz Zuazaga
Programmer Archaeologist

Reply via email to