Skip to content

[Feature]: memory leak fix for comment section #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
veganomy opened this issue Feb 11, 2025 · 0 comments
Open
4 tasks done

[Feature]: memory leak fix for comment section #167

veganomy opened this issue Feb 11, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@veganomy
Copy link

veganomy commented Feb 11, 2025

Checklist

  • This is an issue for Hyperchat, not LiveTL. I will go to the LiveTL repo to report an issue for LiveTL.
  • I have checked for a duplicate or similar issue. I made sure to check closed issues as well.
  • I am not reporting a bug. If I am, I will use the bug report issue template.
  • By submitting this issue, you agree to follow our Code of Conduct

Is your feature request related to a problem? Please describe.

As I read more and more comment sections from different videos in a same tab, the memory starts to pile up (similar to how live chats do).

To Reproduce

  • Load the comment section of a video
  • Minimize it using the video player minimize feature
  • Queue different videos
  • Load the comments of other videos within the same tab/player
  • Repeat this for 5 to 6 videos (with large amount of comments scrolled down)

As memory piles up, the whole browser starts slowing down due to heavy CPU usage.

Image

Describe the solution you'd like

Clear the memory of old comments from the youtube's memory cache

Expected behavior

The CPU usage shouldn't spike up and should use comparatively lesser memory

Anything else ?

Yes. Currently, the workaround fix for piling memory due to comment sections, is to completely disable them (as someone who doesn't read or write comments most of the time). It can be achieved through extension such as Remove YouTube Suggestions > Video Player > Comments > Hide all comments.

@veganomy veganomy added the enhancement New feature or request label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant