[plt-scheme] efficiency

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Jul 18 11:50:59 EDT 2002

At Thu, 18 Jul 2002 13:20:20 +0200, Adrian Kubala wrote:
> > I'm surprised bigloo is so fast. Last time I compared the two, there
> > wasn't a lot in it. Definitely not 5 times. I was doing some
> > numerical test, but I don't recall which one.
> 
> I was surprised too. My script was regexp- and list-intensive, though
> it seems Bigloo uses the same pregexp library as is provided with
> mzscheme.

Compiling your script with mzc does not compile the pregexp library.
So, even if compiling "pregexp.ss" with mzc would speed it up (I don't
know whether it would), compiling your script won't giving you much
benefit if the script spends most of its time in pregexp.

A lot more could be done to compile stand-alone native code executables
with mzc, especially using the module-collapsing techniques used by
`mzc --exe'. The main reason that work hasn't been done, so far, is
that `mzc' hasn't provided enough of a speedup to make it seem
worthwhile.

Matthew

P.S. --- I assume that you can't (or don't want to) use the
faster-but-usually-less-powerful regexp utilities that are built into
MzScheme.




Posted on the users mailing list.