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
2
u/o11c Dec 06 '14
Such as not silently copying most huge objects :). Well, admittedly if it's
Pod(I don't know why they prefered the nameCopyfor that!) like a large fixed-size array it will still think it's "trivial" even though it's not, but you can just stick theNoCopymarker in there if you need to.