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



Rockbox mail archive

Subject: RE: max 200 entries in a dir. why?

RE: max 200 entries in a dir. why?

From: John Wood <John.Wood_at_royalblue.com>
Date: Mon, 12 Aug 2002 14:24:52 -0400

>> 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 storage. <<

Yeah but it's temporary. You can free it once you're done sorting. It won't
interfere with anything... it'll just come and go in the blink of an eye...
:)

-----Original Message-----
From: Linus Nielsen Feltzing [mailto:linus_at_haxx.se]
Sent: Monday, August 12, 2002 2:02 PM
To: rockbox_at_cool.haxx.se
Subject: RE: max 200 entries in a dir. why?


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
storage.

/Linus



*************************************************************************
This message is intended only for the stated addressee(s)
and may be confidential. Access to this email by anyone
else is unauthorised. Any opinions expressed in this email
do not necessarily reflect the opinions of royalblue.
Any unauthorised disclosure, use or dissemination,
either whole or in part is prohibited,. If you are not the
intended recipient of this message, please notify
the sender immediately.
*************************************************************************
Received on 2002-08-12

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