← Back to context Comment by kloop 11 hours ago > how big is the text file? I bet it's a megabyte, isn't it?The edit in the article says ~1.5kb 2 comments kloop Reply pjc50 10 hours ago Single page on many systems, which makes using mmap() for it even funnier. Filligree 10 hours ago 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.
pjc50 10 hours ago Single page on many systems, which makes using mmap() for it even funnier. Filligree 10 hours ago 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.
Filligree 10 hours ago 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.
Single page on many systems, which makes using mmap() for it even funnier.
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.