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
|
@ -234,12 +234,12 @@ public:
|
|||
|
||||
NetworkConfig(const NetworkConfig &nc)
|
||||
{
|
||||
memcpy(this,&nc,sizeof(NetworkConfig));
|
||||
ZT_FAST_MEMCPY(this,&nc,sizeof(NetworkConfig));
|
||||
}
|
||||
|
||||
inline NetworkConfig &operator=(const NetworkConfig &nc)
|
||||
{
|
||||
memcpy(this,&nc,sizeof(NetworkConfig));
|
||||
ZT_FAST_MEMCPY(this,&nc,sizeof(NetworkConfig));
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue