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

The index file too big #472

Open
Ferry-200 opened this issue Feb 13, 2024 · 1 comment
Open

The index file too big #472

Ferry-200 opened this issue Feb 13, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@Ferry-200
Copy link

Ferry-200 commented Feb 13, 2024

Ask your question here
I found that Harmonoid's index files(such as Tracks.JSON, Playlist.JSON, AppState.JSON in C:\Users\username.Harmonoid) are too big.
The reason is the json is formatted when outputed. Why format json files when output them?

@Ferry-200 Ferry-200 added the question Further information is requested label Feb 13, 2024
@alexmercerind
Copy link
Member

Hi!

The media library used in Harmonoid has been re-written from ground-up to use SQLite (package:drift) instead of JSON serialization. The next version (whenever it releases; quite tense on schedule these days) will utilize it.

When the project was started, there were no reliable libraries for caching data (Flutter for desktop being new at that time). Saving music library into simple JSON file was an effective solution that worked on all platforms (& was sufficiently performant as well). Over time, we were able to resolve any issues that were reported.

The new media library should be more performant & maintainable. A good amount of unit-tests have also been added in-order to ensure stability of each operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants