gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Chrome extension triples memory usage of GitHub compare pages

Open LinqLover opened this issue 2 months ago • 0 comments

Bug description

When I open a GitHub compare page with the extension enables, RAM consumption of the tab may rise to >1 GB. Because my current laptop only has 6 GB and freezes due to this reason, I have disabled the extension for now. Happy to enable it again when the problem can be fixed.

Steps to reproduce

Open a large GitHub page such as https://github.com/hpi-swa-teaching/SwaLint/compare/develop?expand=1 [^1] and monitor memory consumption in Chrome Task Manager, once with the extension enabled, once with the extension disabled. Difference was about 270 MB vs 810 MB when viewing the commit list and 540 MB vs 1660 MB when viewing the file changes (without expanding any diffs manually).

[^1]: Note that I might need to merge this soon. FYI the rough characteristics of this diff were 100 commits/1,372 changed files with 6,379 additions and 3,643 deletions when I tested this.

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No console warnings/error in the DevTools of the GitHub page or the service worker.

LinqLover avatar Oct 03 '25 22:10 LinqLover