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

Move cache to sqlite #25

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments
Open

Move cache to sqlite #25

GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

The current MusicCollection implementation is very slick, but very memory
intensive.  People with very large collections would have to set a very
large heap size to be able to use Harmonium at all.

I wonder if we could store less when parsing the cache at startup, and look
things up from the cache on-the-fly in more situations, so we don't have to
hold the whole collection in memory.

This would be a pretty major change, and decidedly not trivial.  It might
make sense to get an estimate how much heap memory is used per song in the
collection, so we could draw a correlation between library size and heap
size.  With this information we could better decide if it's worth taking
this on.

Storing the cache in something like sqlite might be worth exploring to help
with this and generally make the cache faster.

Original issue reported on code.google.com by [email protected] on 24 Dec 2009 at 3:30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant