7 ms·
> 2x memory looks like a naive implementation of just allocating an std::string from heap for each line. Due to heap fragmentation and various overhead it would
by _pmf_ 4y ago
> 2x memory looks like a naive implementation of just allocating an std::string from heap for each line. Due to heap fragmentation and various overhead it would quickly blow up.
Looks more line Qt's internal UTF-16 encoding in this case.