4 ms·
I made a quick gist showing jquery's source getting converted to cs then back to js https://gist.github.com/1000151 https://gist.github.com/1000151
by cleverjake 15y ago
I made a quick gist showing jquery's source getting converted to cs then back to js
https://gist.github.com/1000151 https://gist.github.com/1000151
- zbowling 15y agocurious if you benchmarked it, if it would be any better.
- cleverjake 15y agoI hacked together a quick comparison using http://mootools.net/slickspeed/ http://mootools.net/slickspeed/ as a base. I'll redo it publicly if anyone has interest. The coffeescript version is most certainly worse, but negligibly so. It adds about 1-2 ms to half of the functions. That being said, thats not surprising. Just like when you make a copy of a copy you only loose. You'll never gain by compiling back and forth.