perf: remove unneeded branching in worker choice strategies
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 15 May 2024 13:44:55 +0000 (15:44 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 15 May 2024 13:44:55 +0000 (15:44 +0200)
commit7f13b544e1f3041a2a2e8cf16ec714b4d2e7c2ce
tree3aca6a0b4fa4944cb2f6ab8040e83f5ce1717bde
parent010f158c374ba75715130189cc1c53d8f6ca275f
perf: remove unneeded branching in worker choice strategies

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/selection-strategies/fair-share-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