YouTube RM3 - Reduce Memory Usage by Reusing Components

一个在后台运行的简单工具,通过重复利用 YouTube 组件,从而在长期减少内存使用量。

作者
𝖢𝖸 𝖥𝗎𝗇𝗀
日安装量
3
总安装量
599
评分
5 0 0
版本
0.1.0019
创建于
2024-12-21
更新于
2024-12-28
大小
31.7 KB
兼容性
与 Firefox 兼容 与 Chrome 兼容 与 Opera 兼容 与 Safari 兼容 与 Edge 兼容
许可证
MIT
适用于

YouTube RM3

Description

Now it work for chatroom elements mostly. The further support is under review.

Way of Test

  1. https://www.youtube.com/watch?v=IKKar5SS29E
  2. Open Chat Room
  3. The pre tickers are shown.
  4. wait for few seconds ( 3s ~ 5s )
  5. change from "top chats" to "all chats"
  6. all content refreshed.
  7. pre tickers disappear.
  8. wait for the next next ticker appears ( sufficient time for 4s CONFIRM_TIME)
  9. the tickers appear would cause less memory increase.
  10. can be verified in DevTools Performance Recording.

General Test (Loading of Chatroom in a Live Archive for 30s)

  1. https://www.youtube.com/watch?v=IKKar5SS29E
  2. Open Chat Room
  3. Play 1s (live chat initialization)
  4. Open DevTools and start record
  5. Record for >30s

Before

After