Interesting discussion here with Matthew about different implementations of Promise and their performance. We should revisit this and see if there are further performance improvements lurking here.
Some context: in cb74c66, I created MemoizedPromise which yielded a slight time improvement at the cost of a slight increase in space. It's possible that a different implementation could yield the same time improvement but with smaller space overhead.
Interesting discussion here with Matthew about different implementations of
Promiseand their performance. We should revisit this and see if there are further performance improvements lurking here.Some context: in cb74c66, I created
MemoizedPromisewhich yielded a slight time improvement at the cost of a slight increase in space. It's possible that a different implementation could yield the same time improvement but with smaller space overhead.