Rockbox mail archiveSubject: Re: A nasty inefficieny in file.c?
Re: A nasty inefficieny in file.c?
From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Sat, 15 Jul 2006 11:55:17 +0200
Jonathan Gordon wrote:
> to limit the distance it has to seek back would it be better to read
> the smaller of MAX_PATH and buffer_size untill either the buffer is
> full or we hit a new line? instead of just reading the full buffer
In any case, the read_line() inefficiency is not a big deal. It is only
used to read config files and stuff, and that isn't really critical.
Received on 2006-07-15