fancywm icon indicating copy to clipboard operation
fancywm copied to clipboard

Reduce Memory Usage

Open pc-v2 opened this issue 3 years ago • 1 comments

Describe the bug 200MB for managing window seems kinda big?

To Reproduce Steps to reproduce the behavior:

  1. Run fancywm
  2. check memory usage

Expected behavior less bloated memory usage (<100MB) Screenshots imageDesktop (please complete the following information):

  • OS: [e.g. Windows 11]
  • Version [e.g. 21H2 64-bit]

pc-v2 avatar Feb 02 '22 15:02 pc-v2

Thanks for reporting this.

I can only suggest closing the Settings window when not using it, as keeping it open is definitely going to result in increased CPU and memory usage, as in the screenshot.

With the Settings window closed, the private heap peaks at 37 MiB (.NET objects), and Task Manager reports 160 MiB (on my machine, in debug). The 123 MiB difference between these two values is what is used by the platform (WPF, .NET, etc.) and as such is not directly under my control.

Screenshot 2022-02-02 160200

As far as I'm aware, there are no memory leaks, so for the time being, I see no practical way of reducing memory usage further without removing functionality. Sorry.

veselink1 avatar Feb 02 '22 16:02 veselink1

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Apr 21 '24 02:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 05 '24 02:05 github-actions[bot]