[Ecls-list] Critical change
Juan Jose Garcia-Ripoll
jjgarcia at users.sourceforge.net
Sat Jan 26 13:30:16 UTC 2008
- In interpreted functions, blocks are only created when used. The current
algorithm for detecting unused blocks is inefficient, with a performance
penalty 2^{# unused blocks}, but this seems to pay off when running the
interpreted code, due to decreased consing
> (defun foo () )
FOO
> (time (dotimes (i 100000) (foo)))
real time : 0.045 secs
run time : 0.048 secs
gc count : 1 times
consed : 160 bytes
Formerly, this would cons 3200192 bytes.
Tag: (CVS 2008-01-26 14:29)
--
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com
More information about the ecl-devel
mailing list