/Daniel Lemire

Parsing 8-Bit Integers Quickly tl;dr: Daniel discusses efficient methods for parsing 8-bit integers from ASCII / UTF-8 strings. The post begins by describing a basic C function for parsing 8-bit integers. This function checks if each character in the string is a digit and then calculates the integer value. It works well for strings with predictable lengths but can be inefficient when the length varies due to branch misprediction in the processor. The post also discusses an alternative version, which is presented as potentially faster under some compilers.

featured in #470


The Go Compiler Needs To Be Smarter tl;dr: Go's compiler is "shy about inlining" and doesn't have a concept of runtime constant variable.

featured in #184