lafikl / liblb

A golang library that implements load balancing algorithms.
https://lafikl.github.io/liblb-site/
MIT License
360 stars 17 forks source link

use atomic counters #3

Open lafikl opened 7 years ago

lafikl commented 7 years ago

replace the locks on counters with atomic counters to reduce the lock contention

suedadam commented 7 years ago

Simple change to do this referenced in #4