Actually, Robert, I took a closer look at your implementation.

And I figured out why it's so much faster.

You're relying on a single array of partially applied arguments whose
length you reset rather than cloning the array each time.

This actually turns out to be perfectly spec-compliant and avoids
significant memory consumption (one arg array instantiation upon
binding instead of one per call to the bound function).

I must admit this looks both very appealing... and scary at the same

Thoughts anyone ?



You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to