perf: improve node eligibility branching on worker choice strategies
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 27 Aug 2023 19:35:22 +0000 (21:35 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 27 Aug 2023 19:35:22 +0000 (21:35 +0200)
commit9fe8fd698590c2494dc6793cfd8c08026fe88a31
tree5181a01cc54ff5ded033f1525afdd701cbbc1334
parent8c0b113f317f5e59160fb5174fd951330756221b
perf: improve node eligibility branching on worker choice strategies

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.c8rc.json
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/utils.ts
tests/utils.test.js