The C++ Short String Optimisation

Posted on Sat 19 November 2016 in Performance • 4 min read

While learning and reading up on C++11 recently, I came across the Short String Optimisation.

I’d at some point been told (or somehow got it into my head), that C unions are generally dangerous and are something you should steer well clear of, so I’d never really known what they were about. However, from learning about the SSO it’s clear they can make for some very efficient memory use as …


Continue reading