[Bug libstdc++/29037] performance problem with std::string operator=(const std::string& str);
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Tue Sep 12 17:39:00 GMT 2006
------- Comment #4 from pcarlini at suse dot de 2006-09-12 17:38 -------
If it's not sufficiently obvious: a reserve on cacheKey *after*
cacheKey=current.FileName; much better only after having checked that the
vector is not empty, would be exactly as effective as the c_str workaround (as
usual, if I understand correctly your code).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29037
More information about the Gcc-bugs
mailing list