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

增加 hpatchz -s 自动使用的内存大小和自释放包的参数设定 #399

Open
supply9243 opened this issue Nov 28, 2024 · 1 comment

Comments

@supply9243
Copy link

我测试使用的内存越大恢复时间越短,可以尽可能的利用剩余内存。

比如 -s-0.75 使用剩余内存的75%,我暂时用批处理解决了这个问题。

但是对于自释放包我不知道该怎么办,好像也不支持参数传递(如果可以请帮忙举个例子)。

最后,谢谢开发者提供的软件。

@sisong
Copy link
Owner

sisong commented Nov 29, 2024

hpatchz命令行或自释放包(注意-X选项)支持 -s-cacheSize 来设置patch时的缓冲区大小;
如果觉得默认值缓冲区大小(4MB)不合适,也可以修改默认逻辑,比如动态计算缓冲区大小;
修改源代码后重新编译: #define kPatchCacheSize_default ((size_t)1<<22)

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

No branches or pull requests

2 participants