3 ms·
Back in the 1980s, my compiler (Datalight C) won file I/O benchmark after benchmark, year after year. My trick was stupid simple. The usual file I/O buffer siz
by WalterBright 4y ago
Back in the 1980s, my compiler (Datalight C) won file I/O benchmark after benchmark, year after year.
My trick was stupid simple. The usual file I/O buffer size was 512 bytes, I made it 16K.
- WalterBright 4y agoP.S. I learned that trick from Shal Farley, who dramatically speeded up DECUS' Runoff program (an ancestor of Markdown) by doubling the buffer size.