-
C strlen comparisons
In a recent learning project i was implementing a XML-parser in c. After benchmarking my naive implementation on a 12M XML-file i stumbled over something very interesting. The function using 99% of my time was
strlen
even though it was only called in a couple of locations. I could figure …