mr-pennyworth / alfred-extra-pane

Rich previews for Alfred script filters
135 stars 5 forks source link

Memory consumption (dealbreaker) #30

Open astr0gator opened 2 weeks ago

astr0gator commented 2 weeks ago

Instant google search example works great 🙏 The only caveat is that it generates a process “AlfredExtraPane Web Content” https://www.google.com that takes ~300-400MB of RAM and it stays alive permanently even though I don't use that instant search anymore. With this approach each extra-paned workflow would add up. Any suggestions how on how to terminate it after usage?

mr-pennyworth commented 2 weeks ago

Good point @astr0gator! Yup, Extra Pane doesn't do any optimizations around the webviews (think of those as embedded safari tabs). This behavior should be fixed!

However, I'm not sure when I'll be able to get around to figuring out how to do the optimization without compromising on the convenience an "always on" pane brings presently. For my personal use, I think this problem went unnoticed because of the high-end macbook provided to me by my employer for my day job 🤣

I'll keep this issue open with a "help wanted" label so that folks can contribute a fix 😇

astr0gator commented 1 week ago

It's fascinating app. Memory issue is challenging though. After being testing on my Max with 64GB I can confirm that ~leaking~ usage is serious and reach ~1GB. As an avid Ollama/Docker user, I have to stop using alfred-extra-pane since memory is still important for me personally.

Having said that, I agree that for high-end MacBook with 128 GB that you mentioned, it might be less constrained, even though consumption may be actually a bit higher.

Alas, I'm not proficient in Swift, hopefully somebody can help.