MidLevel / Ruffles

Lightweight and fully managed reliable UDP library.
MIT License
212 stars 28 forks source link

Ruffles logic loop optimization #11

Closed TwoTenPvP closed 4 years ago

TwoTenPvP commented 4 years ago

The current Ruffles logic loop iterates the the whole Connections array about 7 times. Performing null and dead checks for each.

This could be reduced by either pre-caching the connected connections, or exiting once the last connected is reached.

It could be further reduced by merging the loops and nullchecks into a single loop.

MidLevel-Bot commented 4 years ago

:tada: This issue has been resolved in version 8.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: