ajbt200128
3fbac32822
fix: mutex usage and inline bugs
2025-11-12 14:27:36 -08:00
Simon Cruanes
8eda0730e9
remove dead code
2025-09-08 12:24:49 -04:00
Simon Cruanes
b778ffdac3
reduce allocations in push
2025-09-08 08:09:05 -04:00
Simon Cruanes
026465f770
reduce size of critical section
...
better to reverse the list without holding the lock,
as it allocates and might have to yield to another thread
or domain, pause, etc.
2025-09-08 08:08:29 -04:00
Simon Cruanes
76efa381c3
comments
2025-09-08 08:08:18 -04:00
Shon Feder
8a8299020a
Make Batch actually be thread safe
2025-09-07 23:26:20 -04:00
Shon Feder
8b48843459
Correct size and optimize representation
...
Since we need to traverse the elements added to count up the new size,
we can use that pass to add the elements onto our FIFO queue, and then
drain the queue in one last pass to reverse. IIUC, this should give us
liner complexity of the batch retrieval.
2025-06-30 22:52:49 -04:00
Shon Feder
31a712dd30
Allowing configuring start time
2025-06-30 22:28:30 -04:00
Shon Feder
18f58c3ac5
Allow configuring high_watermark
2025-06-30 22:01:13 -04:00
Shon Feder
ca31707395
Factor batching logic out of the cohttp-lwt client
...
This will allow resuing the batching logic in the Eio client.
As a followup, we should refactor the ocurl client to use the same
batcher.
2025-06-27 21:48:55 -04:00