mhowlett / NNanomsg

.NET binding for nanomsg
MIT License
179 stars 52 forks source link

Simpler socket removal #38

Open RaymondTFreeman opened 5 years ago

RaymondTFreeman commented 5 years ago

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.