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

Improve load times of songs and Homepage #133

Closed
anxiouslelimo opened this issue Jan 11, 2024 · 2 comments
Closed

Improve load times of songs and Homepage #133

anxiouslelimo opened this issue Jan 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@anxiouslelimo
Copy link

anxiouslelimo commented Jan 11, 2024

Is your feature request related to a problem or new idea? Please describe.
I have seen in other apps like Innertune and Rimusic (fork of Vmusic) the load times of songs and homepage are much faster than in Harmony Music

Describe the solution you'd like
Faster Load times for songs and homepage

@anxiouslelimo anxiouslelimo added the enhancement New feature or request label Jan 11, 2024
@anandnet
Copy link
Owner

anandnet commented Jan 18, 2024

I can understand your concern, Harmony Music is built on Flutter which uses Dart language, Dart is single threaded language so, we can't expect multithreaded behaviour and it is very difficult to produce multithreaded behaviour, However we can use Isolate but each Isolate's memory is completely isolated.
In addition to that Flutter/Flutter Plugin uses Platform channel to interact with native platform/native plugin which can cause minor delay.

  • To reduce delay in Homepage loading i have added a option to set no of contents in settings, but still minimum two api requests is getting called each time.

Currently i'm experimenting for this enhancement, Lets hope for the good :)

@anandnet
Copy link
Owner

For Home screen loading issue i've added feature to cached home screen conntent data. which loads home screen almost instant.
For Song loading i have tried multiple scenarios but all are taking almost same time so, i don't think so, it is possible due to single threaded behaviour. for now i'm closing this however i will keep looking new ways for improving this.

anandnet added a commit that referenced this issue Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants