Jayson Harshbarger
Jayson Harshbarger
I forgot to mention you need to run the test using the following command: ``` node --trace_opt --trace_deopt test.js ```
FYI: http://jsperf.com/shotgun-js-vs-js-signals/4
Yep, I've seen this. I don't entirely trust the jsperf myself.... what I do notice though is messages in the browser that signal.dispatch is being skipped by the v8 optimizer....
Still slower than the loop I think... but surprisingly does appear to allow v8 optimization.
Maybe can do even better. Apparently the one time you should can use `arguments` in a functional call without causing de-optimization is Function#apply (source https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#what-is-safe-arguments-usage). I saw huge boost here:...
You're right. In both cases v8 optimization works because of `Function#apply`. I can use the binding function directly because I am not adding any saved params. This is something that...
Do you mean add a comment in the code or in the commit message?
I agree with this... the module should really return a constructor so the seed can be set once per instance. Something like: ``` var myNoise = Noise(seed); var z =...
You need to do it yourself: Have a look at my demo here: Demo: http://hypercubed.github.io/perlin-terrain-angular-demo/ Source: https://github.com/Hypercubed/perlin-terrain-angular-demo
I'm hoping for an ES6 module solution. Currently SystemJS and Web Components are very tangential.