Closed nwwells closed 10 years ago
Just learned about this trick and immediately thought of this project. Checkout the jsperf here:
http://jsperf.com/postmessage-vs-settimeout
Not sure how the performance compares to setImmediate, but it's an interesting thing to look into. I might submit a PR if you're interested.
setImmediate uses postMessage, so I think that's covered. Thanks for the suggestion, though.
postMessage
Just learned about this trick and immediately thought of this project. Checkout the jsperf here:
http://jsperf.com/postmessage-vs-settimeout
Not sure how the performance compares to setImmediate, but it's an interesting thing to look into. I might submit a PR if you're interested.