News for hackers. Stuff that matters.
Re:Dynimize: Speed Up MySQL with CPU Performance Virtualization by da_chicken on Wednesday May 09, 2018 @12:06PM (#17030928)
Wow, I hadn't heard about the is-odd/is-even/is-number thing. That's hilarious and awful.

Reminds me of: https://github.com/jezen/is-thirteen

Re:Dynimize: Speed Up MySQL with CPU Performance Virtualization by stephenr on Wednesday May 09, 2018 @12:19PM (#17031063)
The “best” part of it all is that apparently js engines have an internal optimisation for `foo % 2 === 0`, because it’s such a common thing.

This clown was using a bit wise operation in `is-even` “because everyone already knows about % 2 === 0`, and thus was hurting performance (on top of whatever extra memory is used for the module, function call overhead etc)