dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: A nasty inefficieny in file.c?

Re: A nasty inefficieny in file.c?

From: Linus Nielsen Feltzing <>
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.

Received on 2006-07-15

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy