Rockbox mail archive
Subject: RE: max 200 entries in a dir. why?
From: Linus Nielsen Feltzing (linus_at_haxx.se)
On Mon, 12 Aug 2002 13:51:33 -0400, John Wood wrote:
> > > Read the each folder name as we display them? Spinning up the
> drive every time we scroll the display? <<
> Well no, you'd build a page of 200 names and cache that. When you
> exhaust the first 200 names, then you build the second page. You'll
> get a spin whenever you cross page boundaries. But like I said,
> that's better than not displaying more than a page at all...
Still, you must read the whole directory and sort it before you can
cache 200 of the files in it. To do that, you need a temporary
storing space for those, let's say, 500 names. And then we would have
gained nothing, since we need to allocate space for that temporary
Page was last modified "Jan 10 2012" The Rockbox Crew