Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hierarchical image directories #14

Open
tkem opened this issue Mar 20, 2015 · 5 comments
Open

Use hierarchical image directories #14

tkem opened this issue Mar 20, 2015 · 5 comments
Labels
C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal

Comments

@tkem
Copy link
Member

tkem commented Mar 20, 2015

One level of subdirectories is probably enough, with the base directory containing max. 256 entries.

@tkem tkem transferred this issue from mopidy/mopidy-local-images Dec 9, 2019
@jodal jodal added the C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal label Dec 21, 2019
@kingosticks
Copy link
Member

with the base directory containing max. 256 entries.

Sorry if this is a stupid question but what is this referring to?

@adamcik
Copy link
Member

adamcik commented Jan 3, 2020

My guess would be an optimization around FS limitations for number of files in a directory, or speed thereof?

@kingosticks
Copy link
Member

That was my guess but I can't find where 256 is a limit.

@adamcik
Copy link
Member

adamcik commented Jan 3, 2020

Probably just 16² due to using the first two characters of the hash?

@tkem
Copy link
Member Author

tkem commented Jan 5, 2020

@adamcik: correct ;-)
The limit was completely arbitrary, just something that I thought would be "manageable" in some way. In my (somewhat dated) experience, 256 entries per directory would be rather nice to navigate, and 256*256=65K tracks would probably be a larger-than-average collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal
Projects
None yet
Development

No branches or pull requests

4 participants