I've created a CL that provides a specialization for f.bind(this) case (http://codereview.chromium.org/6368138/) and makes function returned by bind optimizable by Crankshaft pipeline.
My measurements indicate roughly 45% speedup for f.bind(obj) case (of course for the case when you call result of the bind many times, not for the case when you bind function many times). -- Vyacheslav Egorov On Mon, Feb 7, 2011 at 8:28 PM, Egor Egorov <[email protected]> wrote: > Oh yeah, I've noticed the performance of the closure and it really impressed > me. Not a big deal to use it all the time, though, it's just that the > .bind(this) looks cleaner in the code. Thanks for explanation! > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
