Commit 82c136f
committed
sqlite: implement batched async operation scheduling
Trade a bit of db operation latency for throughput by batching db
operations together before scheduling their execution on the thead pool.
Completion notifications are currently delivered eagerly through an
additional `uv_async` handle, but this is not strictly necessary for the
chosen implementation strategy and might get removed again.
Some care has been taken to not criss-cross memory allocations and de-
allocations between threads as modern modern allocators tend to perform
worse in such scenarios.1 parent 78f4e12 commit 82c136f
3 files changed
Lines changed: 557 additions & 58 deletions
0 commit comments