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 time. Thoughts anyone ? Best, Tobie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
