Rockbox.org home
releases
current build
extras FAQ
manual
wiki
docs index mailing lists
IRC
forums bugs
patches



Rockbox mail archive

Subject: 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
> size?

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.

Linus
Received on 2006-07-15


Page was last modified "Mar 9 2008" The Rockbox Crew