Commit graph

10 commits

Author SHA1 Message Date
ab5411da42 Make resource pool changes and add parallelism limiter
All checks were successful
/ test (push) Successful in 9s
This was motivated by trying to allow for completely cleaning up
resource pools, which involved removing their use of fiberize which
currently has no destroy mechanism.

As part of this, there's a new parallelism limiter mechanism using
resource pools rather than fibers, and also a fixed size resource
pool.

The tests now drain? and destroy the resource pools to check cleaning
up.
2025-06-26 10:43:46 +02:00
4f0eafef0a Resource pool max waiters and destroy changes
Add the ability to specify the max number of waiters for a resource
pool, this provides a more efficient way of avoiding waiters for a
resource pool continually rising.

This commit also improves the destroy behaviour.
2025-04-27 09:41:56 +01:00
6337103525 Remove the resource pool reply timeout
By being smarter about how long to wait for replies.
2025-02-04 13:16:38 +00:00
a11cd24e57 Improve resource pool performance when there are lots of waiters 2025-02-04 13:16:10 +00:00
bddc6c04ad Fix idle resource removal in the resource pool 2025-02-03 12:16:16 +01:00
2910e66150 Fix issue with parallel creating resource pool resources 2025-02-02 11:29:25 +01:00
61451907a9 Improve resource pool destruction 2025-01-31 12:33:50 +01:00
dcb56ee2c5 Tweak the resource pool
Mostly to no longer sleep in the main fiber. Now the main fiber just
spawns other fibers when it would previously block on put-operation
and these other fibers communicate back to the main resource pool
fiber when necessary.

This should mean that the resource pool is more responsive.
2025-01-09 09:34:11 +00:00
97a3116b81 Support getting the pool from the timeout error 2025-01-06 19:06:28 +00:00
2f39c58d6c Initial commit 2024-12-16 09:18:12 +00:00