mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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
24 KiB
24 KiB