Skip to content
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

【程序变的越来越大,越来越臃肿了】 #16213

Closed
1 task done
Whichbfj28 opened this issue Jul 20, 2024 · 8 comments
Closed
1 task done

【程序变的越来越大,越来越臃肿了】 #16213

Whichbfj28 opened this issue Jul 20, 2024 · 8 comments

Comments

@Whichbfj28
Copy link

Whichbfj28 commented Jul 20, 2024

这是一个什么样的功能?

作者好像在更新rsshub的架构。这种使用新技术的能力让人佩服。但是能不能考下程序变的臃肿的问题。以及新东西未必是好的。服务器程序不出问题别折腾。

这个功能可以解决什么问题?

image
image

一月份跟三月份的镜像大小。普通镜像大小暴增到270%、chromium暴增到195%

额外描述

No response

这不是重复的功能请求和 RSS 提案

@Whichbfj28 Whichbfj28 added the RSS enhancement New feature or request to existing RSS label Jul 20, 2024
@Whichbfj28
Copy link
Author

legacy-2024-05-24 264MB
2024-07-18 869MB
如果经典版跟最新的普通版对比869 VS 264 .直接膨胀329%。。

@DIYgod
Copy link
Owner

DIYgod commented Jul 20, 2024

Size is not the only measure of quality. If you have extreme size requirements, consider submitting a PR to improve it.

@DIYgod DIYgod closed this as completed Jul 20, 2024
@Whichbfj28
Copy link
Author

Whichbfj28 commented Jul 20, 2024

Size is not the only measure of quality. If you have extreme size requirements, consider submitting a PR to improve it.

确实不是唯一的标准。但是他让vps带动rsshub越来越费劲。。部署的时候需要越来越多的资源。
我对作者带着敬意。但是我不希望rsshub有一天变的微信一样疯狂膨胀体积

@DIYgod
Copy link
Owner

DIYgod commented Jul 20, 2024

The previous small size was due to the maintainers spending a lot of time on optimization, but it has always been a low-priority issue. Unless it becomes severe enough to affect most people.

Now, we don't have enough manpower to continue this optimization work after the architecture change, nor are we willing to invest a lot of time and cost into this area. However, if there are PRs, we are certainly happy to accept them.

@DIYgod
Copy link
Owner

DIYgod commented Jul 20, 2024

There are some key reasons:

  1. Its size will not have significant continuous expansion in the future.
  2. WeChat is a commercial product that makes a lot of money, don't compare it with open-source projects.
  3. The current size is an acceptable level for me, you should consider expanding your VPS.

@Whichbfj28
Copy link
Author

There are some key reasons:

  1. Its size will not have significant continuous expansion in the future.
  2. WeChat is a commercial product that makes a lot of money, don't compare it with open-source projects.
  3. The current size is an acceptable level for me, you should consider expanding your VPS.

谢谢你的回复。我打算部署回legacy版本。vps带新版本确实比较费劲。而高配置vps需要支出更多的钱。

@TonyRL TonyRL added core enhancement and removed RSS enhancement New feature or request to existing RSS labels Jul 20, 2024
@KwToPA
Copy link

KwToPA commented Jul 23, 2024

不知道这个有没有用

https://stackoverflow.com/questions/69428179/how-to-reduce-puppeteer-size

How to reduce Puppeteer size
Here's a few steps I've followed:

Install with NPM playwright-chromium to only download Chromium.

Set PLAYWRIGHT_BUILDPACK_BROWSERS env variable to chromium in Heroku to only install Chromium dependencies.

Put this buildpack before Node.js buildpack in Heroku.

With /puppeteer-extra/issues/454#issuecomment-917437212 you can use most of the of stuff from puppeteer-stealth.

If you want, you can block resources like in Puppeteer:

@ihfserkm

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants
@DIYgod @TonyRL @KwToPA @Whichbfj28 @ihfserkm and others