Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user