3 ms·
> I guess things are not packed further to allow to just directly use the pointer instead of having to do some computation for each access. There are C++ stand
by jsnell 10y ago
> I guess things are not packed further to allow to just directly use the pointer instead of having to do some computation for each access.
There are C++ standard libraries that pack things further. I think clang has a 24 byte std::string, which can store strings of up to 22 bytes inline.