Background service enhancement
Closed this issue · 4 comments
It would be cool to make a a service that will work in the background, to be able to unload the UI because the UI consumes a lot of RAM.
How much RAM usage do you see? Brisk can be minimized to tray and then it won't consume much resources for updating the UI. I would imagine most RAM usage you see must be related to the downloads. If there is still a lot of RAM usage when Brisk is in system tray, please send me a screenshot of its RAM usage.
Also, please tell me what your download speed is since Brisk might not be optimized for very high speeds and if that's the case I should optimize it for the next version.
Yes at first the memory consumption was 74 MB, but now it has decreased to 38 MB. Its's already better, but still a little bit much, consumption around 15 Mb would be nicer. My download speed is 10-12 MB/s.
I will try my best to optimize it as much as I can but a lot of it goes back to the Flutter platform itself and how things are handled internally. What comes to my mind right now is to add a low resource usage option to the settings which allows the download buffer to be flushed to the disk more frequently, in other words, the receiving bytes will not live on memory as long as they do by default. This might come with some caveats tho such as a longer file assembling process. On top of that I can also limit the frequency of UI updates which will lower the CPU usage as well.
Thanks for the suggestion. I will add these features for future releases.