3 ms·
There's a couple of links to Godbolt, which are a technically a bit hand-wavy but usually get the point across well enough.
by saagarjha 7y ago
There'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."