feat: optimize worker choice strategies implementation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 3 Sep 2023 09:07:57 +0000 (11:07 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 3 Sep 2023 09:07:57 +0000 (11:07 +0200)
commitf3a91bac2d5c34013f6394ebbe3576569b0cfcc0
tree05390b2191de851dca022e2053b98c64c5df969d
parent64f97d12e2027203715ee0129d036e1d2b42e2a2
feat: optimize worker choice strategies implementation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
14 files changed:
CHANGELOG.md
src/pools/abstract-pool.ts
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/weighted-round-robin-worker-choice-strategy.ts
src/pools/worker-node.ts
src/pools/worker.ts
tests/pools/selection-strategies/selection-strategies.test.js
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.js
typedoc.json