jakearchibald / byte-storage

41 stars 2 forks source link

vector based reads and writes #10

Open dominictarr opened 7 years ago

dominictarr commented 7 years ago

if you wanted really good performance on a design that required many small reads and writes (data framing and indexes as in a database format) then processing those as a vector might be the way to go:

https://www.gnu.org/software/libc/manual/html_node/Scatter_002dGather.html#Scatter_002dGather

it basically behaves the same as a single read and write, but it batches them so only one call into kernel space.