3 ms·
For some cases I've found bitwise stuff to be faster. I'd try replacing: (c < 128 && c > 31) With ((c < 128) & (c > 31)) != 0 if this were in C.
by phkahler 11y ago
For some cases I've found bitwise stuff to be faster. I'd try replacing: (c < 128 && c > 31)
With ((c < 128) & (c > 31)) != 0 if this were in C.
- Gankro 11y agoThis strikes me as the kind of peephole optimization that LLVM would do anyway (similar to people manually converting `x / 2` to `x >> 1`, my nemesis). But maybe it's esoteric enough for them to not bother?