[Larceny-users] load time for SRFI 19

Eduardo Cavazos wayo.cavazos at gmail.com
Wed Apr 15 18:13:52 EDT 2009


Eduardo Cavazos wrote:

> Hmmm... Well, the SRFI-19 library is just doing a require of the R5RS 
> implementation, which isn't compiled... And that in turn does a require 
> of 'time'. That by itself takes around 4 seconds:

Compiling 'lib/Standard/time.sch' doesn't help the 4 second load time. 
I'm guessing it's because of the cond-expands.

I created a file 'lib/Standard/time-unix.sch' whose contents are the 
unix branch of the cond expand. Next, changed 'lib/SRFI/srfi-19.sch' to 
require 'time-unix' and removed the cond-expands from that file as well. 
I compiled both time-unix and srfi-19. This does the trick:

~ # time echo '(import (srfi :19))' | larceny -err5rs
Larceny v0.97a4 (alpha test) (Apr 15 2009 05:42:48, precise:Linux:unified)
larceny.heap, built on Wed Apr 15 05:48:18 CDT 2009
ERR5RS mode (no libraries have been imported)

 > Autoloading (srfi :19)

 >

real    0m0.844s
user    0m0.764s
sys     0m0.068s

Ed



More information about the Larceny-users mailing list