diff options
| author | eunhhu <[email protected]> | 2026-09-26 06:34:39 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-26 06:34:39 +0100 |
| commit | e7a2d8a6715ab48f887acfe1d14e32099e0ed7ff (patch) | |
| tree | d57e26614f5ffd4a996955ff24e4dc735f6bd510 /prototypes/connections/compile-program.c | |
| parent | 9408c57e0f2485fd7960135c931aa120dcb3fa8f (diff) | |
| download | pure-e7a2d8a6715ab48f887acfe1d14e32099e0ed7ff.tar.gz pure-e7a2d8a6715ab48f887acfe1d14e32099e0ed7ff.zip | |
Lend stored extents to reads instead of copying them
A read of a stored document now answers with the store mapping's extents
through writev, without copying the document. pure_draft_mapping takes a
reference to the mapping a draft opened through a handle reads from; the
answer keeps it until the last byte is sent, so the version read goes out
intact even if the document changes or a compaction replaces the file
meanwhile. Replies the mapping does not hold are copied as before.
pure-serve's output is now a list of extents (the head first). One thread
serves 2,761 1 MiB reads per second (axum: 1,380) and 128k small ones.
Diffstat (limited to 'prototypes/connections/compile-program.c')
0 files changed, 0 insertions, 0 deletions
