Discussion:
[Larceny-users] gl.sls
Eduardo Cavazos
2009-02-06 23:49:36 UTC
Permalink
Hello,

Here's the latest version of the gl library:

http://proteus.freeshell.org/gl.sls

One thing I noticed is that it loads *much* slower than the non
'library' version. I.e. this:

----------------------------------------------------------------------
~ # larceny -err5rs
Larceny v0.97b1 (beta test) (Aug 25 2008 07:06:36, precise:Linux:unified)
larceny.heap, built on Mon Aug 25 07:08:14 EDT 2008
ERR5RS mode (no libraries have been imported)
(import (gl))
----------------------------------------------------------------------

is much slower than:

----------------------------------------------------------------------
~ # larceny
Larceny v0.97b1 (beta test) (Aug 25 2008 07:06:36, precise:Linux:unified)
larceny.heap, built on Mon Aug 25 07:08:14 EDT 2008
(load "/scratch/_gl-larceny-b.scm")
----------------------------------------------------------------------

where '_gl-larceny-b.scm' contains the same FFI bindings.

Can y'all shed any light on this? Anyway to make the import faster?

Ed
Eduardo Cavazos
2009-02-07 00:01:31 UTC
Permalink
Post by Eduardo Cavazos
One thing I noticed is that it loads *much* slower than the non
'library' version.
By the way, I'm a little concerned that perhaps I caused "Very Important
Files" to go stale in the 'lib' directory and that perhaps this is
causing the slowness.

It would be nice if Larceny emitted warnings when it skips fasl files
due to staleness. The manual mentions that it does this. However I
tested this out on '_gl-larceny-b.scm' and it silently ignores the fasl
if I modify the scm file.

Ed

Loading...