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: 2006-07-15

Jonathan Gordon wrote:
> // move the fd back to AFTER the \n if needed
> if (!errno)
> lseek(fd,num_read-count+1,SEEK_CUR);

That could be a really lengthy operation if it crosses a sector boundary.

Linus
Received on Sat Jul 15 10:51:06 2006


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