Files
znc/String.cpp
psychon daef16a3eb Replace CString::Token() with a rewritten version
In my testing this saves between 29% and 97% (!) of CPU usage. Biggest speedup
happens with long tokens being returned.
This is because the old version uses std::string::operator+(char) to construct
the returned string, while the new one uses std::string::substr() only once.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1065 726aef4b-f618-498e-8847-2d620e286838
2008-05-24 17:05:07 +00:00

24 KiB