Skip to content

Commit

Permalink
Merge pull request #1455 from wackbyte/fix-typo
Browse files Browse the repository at this point in the history
bloodstone: Fix typo in ARCHITECTURE.md
  • Loading branch information
spacejam authored Aug 5, 2023
2 parents 87a26c4 + 3e6436d commit 36fb34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
1. User code or the background flusher thread calls `Db::flush`.
1. In parallel (via [rayon](https://docs.rs/rayon)) serialize and compress each dirty leaf with zstd (configurable via `Config.zstd_compression_level`).
1. Based on the size of the bytes for each object, choose the smallest heap file slot that can hold the full set of bytes. This is an on-disk slab allocator.
1. Slab slots are not power-of-two sized, but tend to increase in size by around 20% from one to the next, resulting in far lower fragentation than typical page-oriented heaps with either constant-size or power-of-two sized leaves.
1. Slab slots are not power-of-two sized, but tend to increase in size by around 20% from one to the next, resulting in far lower fragmentation than typical page-oriented heaps with either constant-size or power-of-two sized leaves.
1. Write the object to the allocated slot from the rayon threadpool.
1. After all writes, fsync the heap files that were written to.
1. If any writes were written to the end of the heap file, causing it to grow, fsync the directory that stores all heap files.
Expand Down

0 comments on commit 36fb34f

Please sign in to comment.