Skip to content

Reduce idle memory usage when CrossPaste is running with no active tasks #4105

@roukmoute

Description

@roukmoute

Solution

CrossPaste seems to use a large amount of memory even when it is idle and nothing is actively happening.

On my side, Windows Task Manager shows roughly 583 MB of RAM used by CrossPaste.exe while idle, with no noticeable CPU, disk, or network activity. For a clipboard utility, this feels unnecessarily high and may discourage users from keeping the application running in the background.

It would be great to improve the idle memory footprint of the application.

Possible improvement ideas:

  • reduce eager initialization of components that are not immediately needed
  • lazy-load heavy modules only when a related feature is actually used
  • release caches more aggressively when the app is idle
  • add an optional “lightweight idle mode” for background usage
  • expose a simple diagnostics/debug view to help identify which parts consume the most memory

A lower idle footprint would make CrossPaste feel much lighter and more suitable as an always-running desktop utility.

Alternatives

Current workaround is basically to quit the application when it is not needed, but that defeats the purpose of a clipboard/background tool.

Another workaround would be to disable some features if there are heavy modules that can be made optional, but from a user perspective it would be much better if the default idle behavior was already more memory-efficient.

Additional context

I can provide a screenshot from Task Manager if that helps.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions