4 ms·
Ok, but how much? And how does the cost compare against the impact of correctness errors? To just say “there is cost” is not so useful; there is cost to everyt
by yakshaving_jgt 5y ago
Ok, but how much? And how does the cost compare against the impact of correctness errors?
To just say “there is cost” is not so useful; there is cost to everything.
- koshergweilo 5y agoI used to do js gamedev and really it's only a problem in hot loops. Absolutely fine to use it a lot when doing basic webdev/server work
- vore 5y agoAs always, benchmark and profile! However, from first principles, this is one of the degenerate cases of certain JITs that often catches people off guard, but has a straightforward transformation to avoid the pessimizing behavior – especially if your loops end up looking like they're particularly hot.