Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
blueflow
on June 17, 2024
|
parent
|
context
|
favorite
| on:
Static arrays are the best vectors
Or have it evicted to swap. The kernel is pretty good at managing it automatically.
account42
on June 17, 2024
[–]
Writing garbage data you don't need anymore to disk (and reading it back for partial writes) is hardly an elegant solution.
blueflow
on June 17, 2024
|
parent
|
next
[–]
It 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.
_3u10
on June 17, 2024
|
parent
|
prev
|
next
[–]
I'd say its a very elegant solution, it's a no code solution.
corysama
on June 17, 2024
|
parent
|
prev
[–]
Static arrays of read-only memory-mapped files are the best vectors.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: