NNanomsg
NNanomsg copied to clipboard
Simpler socket removal
I was wondering why when removing a socket all of the sockets to to the right have to be copied over, so I came up with an alternative which is to overwrite the target socket with the last socket then decrement the count.
Would be interested to understand any technical reasons why you would opt for the former approach.