[plt-dev] Apply/List vs Call-with-values/vector->values

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Feb 22 10:37:06 EST 2010

How should I expect these two lines to compare performance-wise:

(apply make-prefab-struct
                    (vector->list v))

vs

(call-with-values (lambda () (vector->values v))
                               make-prefab-struct)

For some reason I feel like the second should be faster but after
thinking it, I realized I had no justification.

Jay

-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay

"The glory of God is Intelligence" - D&C 93


Posted on the dev mailing list.