Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



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 "Jan 10 2012" The Rockbox Crew
aaa