hain icon indicating copy to clipboard operation
hain copied to clipboard

Reduce memory footprint?

Open Unrepentant-Atheist opened this issue 9 years ago • 6 comments
trafficstars

With 16GB RAM it's not really an issue for me, but still, having hain run 80-120mb of RAM is a mite too much, compared to Launchy or FARR.

Unrepentant-Atheist avatar May 18 '16 09:05 Unrepentant-Atheist

Yes, this is essential. I think it can be achieved by several ways such as:

  • Merge and compress all JavaScript files (because v8 keeps sources as string in the memory)
  • Customize Electron or Create another very lightweight WebKit wrapper (like MacGap)

These are all very difficult. Are there anybody has a idea?

appetizermonster avatar May 18 '16 11:05 appetizermonster

It is known that Electron uses up a lot of RAM, so if it could be improved, that might be a good route to go on. But I really like the idea of merging and compressing the JS files for increased performance, and I believe that will be beneficial as well.

aouerf avatar May 18 '16 11:05 aouerf

Minify JS would come to mind too. link. But I think that's what you meant by compressing.

Unrepentant-Atheist avatar May 18 '16 12:05 Unrepentant-Atheist

How much memory is a barebone hello world electron app consuming?

ewnd9 avatar May 20 '16 04:05 ewnd9

@ewnd9 Maybe 20~30mb for default 2 main processes. 10mb per window

appetizermonster avatar May 20 '16 09:05 appetizermonster

It's RAM usage really high!.. Application is great but RAM eater :(

linuxtopia avatar Oct 23 '16 12:10 linuxtopia