mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions.
This commit is contained in:
parent
cb8e7b4d5e
commit
0608704626
22 changed files with 163 additions and 81 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue