benchmarking tight u8vector loop

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

benchmarking tight u8vector loop

Kristian Lein-Mathisen


Attached is a benchmarking test that resizes a u8vector of RGB pixels into half the size in each dimension using a pixel average.

I applied Peter's patch which inlines vector-ref and vector-set! procedures:

With this patch, I see about a 2x speedup which is nice. I see vector_ref and vector_set in the generated C code. However, the C code still has a continuation call inside the main loop. Maybe someone can look into why this is happening.

PS. `convert` comes from imagemagick on most distros

Chicken-users mailing list
[hidden email]

srfi-4-stress-test.scm (1K) Download Attachment