NetrexMC / RakNet

RakNet implementation in Rust
Apache License 2.0
44 stars 12 forks source link

[QOP] Make connections themselves a Mutex rather than a mutex over the vector #20

Closed john-bv closed 2 years ago

john-bv commented 2 years ago

While we care for race conditions, we can share the mutable vector, that has synchronized connection information in it, which should be more beneficial than the current implementation where a lock is help over the entire vector until the connection is modified / accessed, at which then it will be released.

For an example on this, see my test