guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list vs vector


From: Sascha Ziemann
Subject: Re: list vs vector
Date: Thu, 29 Dec 2022 10:43:49 +0100

> Clearly we're spending way much time in the GC with the vxml variant.

Thanks a lot! This is a nice tutorial for statprof.

What you have found out, was already my guess but I had no proof. The
VXML version does not utilize the fact that the nodes are already
destructured. During each visit of a node, the vector gets converted
into an argument list and the result of the visit is that a new vector
gets created. This produces a lot of garbage. It would be better to
just pass the vector to the visiting function in order to return
itself, if no modification is necessary.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]