Bill Janssen wrote:
Why doesn't the sector buffer in the "readwrite" function already do
the necessary buffering?

The sector buffer in the readwrite function does the buffering, and it works perfectly fine. The "nasty inefficiency" in this special case is that readline reads 1 byte at a time from the sector buffer, calling memcpy to copy a single byte.

Again, I don't think it's a big deal, since readline is used to read config files, highscores and stuff, hardly time critical.

Linus

Reply via email to