Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions.

This commit is contained in:
Adam Ierymenko 2017-12-15 11:03:20 -08:00
commit 0608704626
22 changed files with 163 additions and 81 deletions

View file

@ -81,7 +81,7 @@ public:
if (s) {
if (len > (C-1))
len = C-1;
memcpy(_d,s,len);
ZT_FAST_MEMCPY(_d,s,len);
_d[len] = (char)0;
} else {
_d[0] = (char)0;