Skip to content

Chrome extension triples memory usage of GitHub compare pages #21081

@LinqLover

Description

@LinqLover

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).

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.

Footnotes

  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions