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

Rockbox mail archive

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

RE: max 200 entries in a dir. why?

From: John Wood <>
Date: Mon, 12 Aug 2002 13:51:33 -0400

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

But I appreciate why we made the compromise to begin with... it's the
simplest solution.

-----Original Message-----
From: Björn Stenberg []
Sent: Monday, August 12, 2002 12:32 PM
Subject: Re: max 200 entries in a dir. why?

John Wood wrote:
> Well you could sort the directory the first time you enter it (store the
> whole thing in RAM, sort it, retain the indices and then discard the
> names)

And then what? Read the each folder name as we display them? Spinning up the
drive every time we scroll the display? Whichever way you go, it becomes an
ugly kludge with boring side effects.

The fact is, we are constantly making compromises between battery life and
player performance. That's why we have to introduce limits such as max 200
files per dir and max 10000 files per playlist.
We could very well support 5000 files per dir, but then we'd get less
battery life. And since nobody else has ever objected to the 200 limit,
we've found it appears to be a good compromise.

However, we are not pigheaded. If you come up with a clever algorithm we've
overlooked, we will definitely take your patches into consideration.

Until then, may I suggest you simply organize your mp3 collection? :-)

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