Hacker News new | ask | show | jobs
by rasz 767 days ago
While this sounds elegant, its also computationally more expensive.
1 comments

In my MIDI controller case, the "compute state and send update" code takes about 8µs, up to a spike of 15µs. The worst case of the code in article is a sort on each frame on a 100ish array, it sounds safe to ignore. Profile before optimizing.