Re:Show HN: An embeddable fractional indexing library in C
by marcobambini on Friday March 13, 2026 @01:34AM
(#47361042)
No, the library is intentionally minimal on that front. It generates and validates keys but doesn't track any metadata about them. Keys are plain C strings, so detecting "time to compact" is straightforward on the caller's side:
Keeping that policy out of the library is intentional. What counts as "too long" depends entirely on the application. A SQLite column with a B-tree index cares about different thresholds than an in-memory CRDT. And the right moment to compact (sync boundary, idle tick, batch write) is an app-level scheduling decision the library has no business making.
[ Parent
| on HN ]
There are no comments on this comment yet.