nim-libp2p
nim-libp2p copied to clipboard
Remove shallow copies
Beside not being compatible with orc, they can introduce weird / unsafe behaviors.
They seemed to be used only in places with a few bytes (worst case being private keys around 256 bytes), so I doubt we'll see any performance regression, but I have a branch with when defined(shallowCopy)
everywhere ready if that's the case