This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Performance, argh


On Mon, Jul 12, 1999 at 11:27:50PM +0200, Marius Vollmer wrote:
> Lalo Martins <lalo@webcom.com> writes:
> 
> > > Excuse me but what is a ".gscmc" format?
> > 
> > A format for semicompiled (or byte-compiled) code. I came up
> > with that ugly extension from ".pyc", the extension used by
> > Python. ".scmc" implies that it works on scm; ".gscmc" is for
> > "Guile Scheme Compiled".
> 
> I'm not sure if you are aware of the "freezer".  It takes the memoized
> tree code and can write it to disk and read it back.  It was only an
> experiment and is likely totally broken now, but it might still be
> interesting to look at.  It's in the guile contrib archive.

It sure would. To do as Python does, Guile itself would have to
be capable of loading files generated by the freezer
transparelty - ie, you ask for "foo.scm", if "foo.gscmc" exists
and is newer it is loaded instead. Perhaps even integrate the
freezer into the loader, so if there's no "foo.gscmc" but we
have write permission on the directory, one is created for us.
This is how Python works, but of course it would do no harm to
be different for a good reason.

I didn't bother to look at the "freezer" because there's a
"freezer" package for Python too, and it does a different thing
:-) It works similarly to Perl's "dump/undump" - it bundles the
interpreter with the (bytecompiled) script.

> The real speed daemon is still the unexec variant of Guile, I think.
> With it, startup is instant.  I think I was able to get a Guile start
> frequency of about 60Hz on my box (that is, Guile was able to boot
> into the repl, do nothing, and then quit 60 times per second (or maybe
> only 30 times, I forgot)). It's also in the contrib archive.

What does unexec do exactly?

[]s,
                                               |alo
                                               +----
--
      I am Lalo of deB-org. You will be freed.
                 Resistance is futile.

http://www.webcom.com/lalo      mailto:lalo@webcom.com
                 pgp key in the web page

Debian GNU/Linux       --        http://www.debian.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]