6 ms·I like the first solution in the comments - use mmap, work page by page (or pair of pages by pair of pages).by dave_au 18y agoI like the first solution in the comments - use mmap, work page by page (or pair of pages by pair of pages).