2 ms·
Am I missing something, or are there no benchmarks in this?
by dannyw 7y ago
Am I missing something, or are there no benchmarks in this?
- saagarjha 7y agoThere's a couple of links to Godbolt, which are a technically a bit hand-wavy but usually get the point across well enough.
- mannykannot 7y agoUntil I looked at that, I could not figure out what justification existed for the author's claim that "It turns out that simply switching to string_view gave the compiler enough information to automatically turn the code I had way back at the beginning into the switch-on-length variant."