Two new ways to read a file quickly
Two new ways to read a file quickly
Posted Mar 7, 2020 18:06 UTC (Sat) by zlynx (guest, #2285)In reply to: Two new ways to read a file quickly by intgr
Parent article: Two new ways to read a file quickly
There was a blog article I read a while ago, linked off Hacker News I think, talking about some research into memory usage this programmer had done. It turned out that many allocations for buffers of sizes such as 4,096 bytes ended up having 16 bytes or so added to it. This was for memory allocation tracking, or if passed into some API the library would put it into a structure with other variables.
If I remember correctly the author determined that allocating 4,000 bytes was a nice round number that tended to round up to a 4,096 page size much more reliably.
Posted Mar 19, 2020 12:43 UTC (Thu)
by mgedmin (subscriber, #34497)
[Link]
Two new ways to read a file quickly