3 ms·
It adds a branch every time you access the string (to check if it is small or not), and can stop various optimisations. g++ used to have small string optimisati
by CJefferson 2y ago
It adds a branch every time you access the string (to check if it is small or not), and can stop various optimisations. g++ used to have small string optimisation, but (eventually) removed it.