My Little (String) Optimization, Part 2--Jordan Rose


My Little (String) Optimization, Part 2

by Jordan Rose

From the article:

Previously, I talked about how Clang is smart enough to optimize a series of comparisons against constant strings in C++ by starting out with a switch on the length. I left off with the idea that while this is good, you might be able to do better if your strings have a unique character at a certain offset. Today we’re going to see what that looks like.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.