perf: avoid branching on pool type
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 22 Dec 2023 22:07:13 +0000 (23:07 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 22 Dec 2023 22:07:13 +0000 (23:07 +0100)
commitd087803425ae5b3577028029dd1d2dae67d7f63b
tree6caadbd819120684ae0488ed974bea72015e270c
parent9d9fb7b64a28d150583fe1bcd895893f6736d9d4
perf: avoid branching on pool type

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/cluster/fixed.ts
src/pools/thread/dynamic.ts
src/pools/thread/fixed.ts