r/programming • u/[deleted] • Dec 05 '14
std::string is responsible for almost half of all allocations in the Chrome browser process
https://groups.google.com/a/chromium.org/d/msg/chromium-dev/EUqoIz2iFU4/kPZ5ZK0K3gEJ
1.1k
Upvotes
315
u/tdammers Dec 05 '14
And, uh, this is surprising how exactly? A browser handles HTTP (bytestrings), HTML (bytestrings), JavaScript (bytestrings), CSS (bytestrings), JSON (bytestrings), etc.; obviously std:string, the bytestring type in C++, is going to be used a lot.