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]

cons expensive? (was Re: DHARMI project)


>>>>> "Telford" == Telford Tendys <telford@triangle.triode.net.au> writes:

> One thing that I have noticed is that using `cons' is very expensive
> with regards to speed. Firstly, cons is quite slow and secondly, the
> garbage collector turns up more often if you use cons. The trouble
> is that almost everything uses cons somewhere or other. Does anyone
> know how to get around this?

cons had better not be expensive!  Lists have to be fast in guile, and
lists are built from consing things.  Of course, there are bigger
things you can build in one go (like vectors), but why is cons so
expensive for your application?