[gambit-list] homogeneous vector performance
Guillaume Germain
guillaume at nulko.com
Sat Dec 11 18:55:45 EST 2004
dev null wrote:
> For 100_000 elements, my laptop executes the C version in 11 secs and
> the scheme code in 20 secs.
I have very similar timing results on my computer. Adding the following
declarations to the top of the Scheme file reduces the running time from
20.5s to 11.4s (that is about as fast as C):
(declare
(standard-bindings)
(block)
(not safe)
(fixnum)
(extended-bindings)
(inline)
(inlining-limit 10000)
(lambda-lift)
(constant-fold))
I don't know why the u32-vector version is slower.
Guillaume
More information about the Gambit-list
mailing list