Closed cscott closed 8 years ago
Thanks, this looks great! I have a number of minor comments but after those and a fresh rebase, this should be good to go.
Ok, rebased with fixes from your comments applied.
@cscott crap, sorry, I cherry picked two of your commits and pushed them up not realizing you'd already done the rebase. Would you mind one more rebase? :-) if not i'll merge manually
rebased, no problem.
These patches improve the performance of Promises by roughly a factor of 2x, resulting in performance on the
doxbee sequential
benchmark equivalent to thecore-js
Promise implementation and within a factor of two of v8's native Promise implementation. It also results in about 50% less memory usage on that benchmark than eithercore-js
or v8 native Promises.The improvements to TypeIsObject and IsCallable also improve the performance of other parts of the shims.