News for hackers. Stuff that matters.
Re:Remove first 300M lines from 700 GB file on 1TB disk by jgalar on Tuesday September 22, 2020 @11:36AM (#24555733)
I would guess memory map the whole file, then do the equivalent of:

memmove(beginning_of_file, beginning_of_file + 300_m_line_offset, file_size - 300_m_line_offset);

There are no comments on this comment yet.