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

[Bug] Optimization of UI No Response #27

Open
PublicWorld opened this issue Nov 27, 2022 · 4 comments
Open

[Bug] Optimization of UI No Response #27

PublicWorld opened this issue Nov 27, 2022 · 4 comments

Comments

@PublicWorld
Copy link

Describe the bug

Hi, when I try to upload a dozen photos in this macOS app, around 100 MB size, the compression process will cause the interface to keep loading and not be able to do anything, so do we have any optimization plan to solve this problem?

@PublicWorld
Copy link
Author

@Christopher-Hayes Hi, I am glad to see that you are also involved in this project. Do you have any suggestions or solutions?

@Christopher-Hayes
Copy link
Contributor

Christopher-Hayes commented Nov 28, 2022

Hi @NumberCode I haven't been actively involved on this project for several months, so I can't offer any immediate fixes. I'll try to take a look at some point in December.

If you or anyone wants to try working on this - the first place I would take a look would be how file data is getting read into working memory and check if multiple files together are causing a memory spike that is freezing Electron. Optimization could involve making sure files are all gettings streamed (rather than put into working memory objects), checking for memory leaks / if any working memory file data is not getting garbage collected for some reason (Map vs WeakMap), or other ways to mitigate memory spikes.

Generally, the UI shouldn't freeze if we're doing the hard work on the Main thread and leaving the UI interactable on the Renderer thread. Freezing would usually mean the app hit some hardware limit like memory. But, there are probably improvements that could be made showing task progress, especially for lots of files / big files.

@PublicWorld
Copy link
Author

Thank you so much for your response! It would be great if you were willing to take the time to solve this problem!
I like this software very much, but I am not a professional front-end developer and don't know how to solve it.
I tried searching the Internet and found that it seemed possible to use remote to create a hidden window to handle time-consuming tasks, how dou you think?

@PublicWorld
Copy link
Author

🥹 No one handles this~

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

No branches or pull requests

2 participants