News for hackers. Stuff that matters.
Re:Everything old is new again: memory optimization by kloop on Friday March 27, 2026 @08:45AM (#47542047)
> how big is the text file? I bet it's a megabyte, isn't it?

The edit in the article says ~1.5kb

Re:Everything old is new again: memory optimization by pjc50 on Friday March 27, 2026 @09:10AM (#47542250)
Single page on many systems, which makes using mmap() for it even funnier.
Re:Everything old is new again: memory optimization by Filligree on Friday March 27, 2026 @09:57AM (#47542725)
Not to mention inefficient in memory use. I would have expected a mention of interning; using string-views is fine, but making it a view of 4kB cache pages is not really.

Though I believe the “naive” streaming read could very well be superior here.