perf: optimize worker choice strategies
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 16 Jun 2023 19:27:58 +0000 (21:27 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 16 Jun 2023 19:27:58 +0000 (21:27 +0200)
commitd33be4309c69e39da5e81479e40b1a5ec7078bd5
treea53e09bbe30e9ed53d69d94f78531006a724c1ea
parentdc32abbbbd36504ce933a0403cc245899c25a828
perf: optimize worker choice strategies

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
CHANGELOG.md
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/least-busy-worker-choice-strategy.ts
src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
src/pools/selection-strategies/least-used-worker-choice-strategy.ts
src/pools/selection-strategies/round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
tests/pools/selection-strategies/selection-strategies.test.js
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.js