wincompose icon indicating copy to clipboard operation
wincompose copied to clipboard

WinCompose taking up 70-110MB RAM - is this normal?

Open Darthagnon opened this issue 4 years ago • 12 comments

Greetings! I recently discovered WinCompose, and it works very well, but it seems to take up a lot of RAM for what it does (e.g. Wizkey takes up 12MB RAM and does most of what WinCompose does, bar emoji, with additional popup menus). Is it normal for it to take up (Process Hacker report): 74.8 MB (Private WS) / 111.09 MB (Private bytes)? Or has something gone wrong my end? It seems impossible, since the software unzipped is only 6MB...

Darthagnon avatar Jun 21 '20 20:06 Darthagnon

FWIW the old versions of WinCompose used to be written in AHK, i'm running one and it takes 6MB

oakkitten avatar Jun 21 '20 20:06 oakkitten

@oakkitten Do you know what version they switched over from AHK? What's your version number?

Darthagnon avatar Jun 21 '20 20:06 Darthagnon

The GUI is responsible for that. I think if you never open the sequences window you'll see a much smaller memory footprint.

samhocevar avatar Jun 21 '20 21:06 samhocevar

AHK had too many problems: it was too slow, didn't handle keyboard layout changes, and could not render emoji, so going back to it is not an option. However I do understand this is an issue and I will look into reducing memory usage.

samhocevar avatar Jun 21 '20 21:06 samhocevar

Thank you for making this amazing softwaré!

Darthagnon avatar Jun 21 '20 21:06 Darthagnon

just starting WinCompose relieves me of 90MB of ram. also it constantly uses around 1% of CPU, up from 0.3% back in November (https://github.com/samhocevar/wincompose/issues/211#issuecomment-557331774)

oakkitten avatar Jun 21 '20 22:06 oakkitten

I have the same issue. I found it very helpful, but can't have it use so much resources for what it does - I will monitor progress about it though

JerryBels avatar Aug 19 '20 22:08 JerryBels

Wincompose RAM RAM/CPU usage (constant while idle) for WinCompose v0.9.5

Cautiously, I'd say it looks a bit better. Still not optimal, but better.

EDIT: After opening the GUI once to adjust settings, this happens and stays constant until closed or restarted: Wincompose RAM after using GUI 😢😢😢 works very well, but that RAM and CPU tho - doesn't make sense. Is there some leak, or does it load millions of HD Emoji PNGs into RAM?

Thank you so much for doing a new release, and making this amazing software, though! I do appreciate it!

Darthagnon avatar Nov 27 '20 22:11 Darthagnon

I found this tool called SymWin and did a build of it. It works for much the same purpose as WinCompose, but takes about 20mb RAM. Recommended for anyone who needs accents on a limited RAM machine.

EDIT: tagging @oakkitten, @JerryBels, you guys might be interested.

Darthagnon avatar Dec 02 '20 02:12 Darthagnon

Wincompose v0.9.7 - 64mb Private WS, 97mb Private bytes, 0.25 constant CPU according to Process Hacker. Maybe improving?

Darthagnon avatar May 08 '21 19:05 Darthagnon

  • Wincompose v0.9.11 - 60mb Private WS, 100mb Private bytes, 0.3 constant CPU (all measured at idle) according to Process Hacker.

  • Symwin, though still rather buggy (and I have no idea how to fix), is 14mb Private WS, 28mb Private bytes, 0% CPU when idle. RAM usage seems to increase with special characters typed.

Darthagnon avatar Dec 08 '21 17:12 Darthagnon

Hope I'm not too late on this thread. Recently there is one Rust written open source software called espanso, which seems to have the same functionality while taking very little amount of memory.

It can serve as another alternative.

wtao137 avatar Jan 20 '24 06:01 wtao137