3 ms·
Or have it evicted to swap. The kernel is pretty good at managing it automatically.
by blueflow 2y ago
Or have it evicted to swap. The kernel is pretty good at managing it automatically.
- account42 2y agoWriting garbage data you don't need anymore to disk (and reading it back for partial writes) is hardly an elegant solution.
- blueflow 2y agoIt is elegant in the regard that the eviction only happens of page pressure warrants it. If the vector happens to be small enough, nothing special happens. And you save on having to write some kind of allocator for it.
- corysama 2y agoStatic arrays of read-only memory-mapped files are the best vectors.
- _3u10 2y agoI'd say its a very elegant solution, it's a no code solution.