Re: list vs vector

2022-12-28 Thread Olivier Dion via General Guile related discussions
On Wed, 28 Dec 2022, Sascha Ziemann wrote: Here are the profling informations: --8<---cut here---start->8--- scheme@(guile-user)> ,profile (vxml:traverse-pre (sxml->vxml xcb) remove-whitespace) #:loop 1 % cumulative self time seconds seconds

Re: list vs vector

2022-12-28 Thread Damien Mattei
i have no idea, at the opposite, in one of my program i experienced a vector implementation faster than the list one. Regards, Damien On Wed, Dec 28, 2022 at 2:23 PM Sascha Ziemann wrote: > I spent my Christmas vacation playing with XML and tree traversal. And > I have observed some strange

Re: list vs vector

2022-12-28 Thread tomas
On Wed, Dec 28, 2022 at 02:22:16PM +0100, Sascha Ziemann wrote: > I spent my Christmas vacation playing with XML and tree traversal. And > I have observed some strange timings, while measuring the execution > time of different algorithms. My test file is the XCB XML schema: [vector version

list vs vector

2022-12-28 Thread Sascha Ziemann
I spent my Christmas vacation playing with XML and tree traversal. And I have observed some strange timings, while measuring the execution time of different algorithms. My test file is the XCB XML schema: https://cgit.freedesktop.org/xcb/proto/plain/src/xcb.xsd And my test program is this: