-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reduce the memory usage of PDF asset file content parsing on the mobile #9079
Comments
@nekrondev Hello, I tested a PDF here. The memory occupied by a single core is about 1G. If it is 4 cores, it will take more than 3G, so it will cause the mobile app to crash. Do you currently have a better way to reduce memory usage? If you need the PDF sample, please send me an email (845765@qq.com), and I will send you this PDF sample as an email attachment, thank you. |
2.10.2的移动端似乎并不能搜索资源文件。 |
观察一下桌面端重建资源文件索引时的内存占用。
…---Original---
From: ***@***.***>
Date: Thu, Aug 31, 2023 22:06 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [siyuan-note/siyuan] Reduce the memory usage of PDF asset filecontent parsing on the mobile (Issue #9079)
2.10.2的移动端似乎并不能搜索资源文件。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were assigned.Message ID: ***@***.***>
|
Hello @88250 I'll have a closer look into this. The |
I'm not sure if there is a way to get the currently available memory on the mobile. Now the dev branch has limited the mobile to 1 core. |
That looks like a good solution to me! I'll continue my tests with dynamic worker pool and see if I can provide some solution eventually. The problem could be that once allocated memory by the WASM runtime will only GC'ed when the |
* commit 'a63e1fda2e203917ae7f72cb359155f4094c4f3e': (217 commits) ⚡ Improve block loading performance on Windows/Linux/macOS amd64 arch siyuan-note#9084 💄 ⚡ Improve block loading performance on Windows/Linux/macOS amd64 arch siyuan-note#9084 🐛 Block hyperlinks do not point to regenerated block IDs when importing .sy.zip siyuan-note#9083 🎨 Reduce the memory usage of PDF asset file content parsing on the mobile siyuan-note#9079 🎨 HTTPS certificate is no longer verified when `Convert network images to local images` siyuan-note#9080 🐛 fix siyuan-note#9076 🐛 fix siyuan-note#9076 🐛 🎨 siyuan-note#9068 🎨 Improve the response status code of kernel API `/api/file/getFile` siyuan-note#9075 Improve the response status code of kernel API `/api/file/getFile` (siyuan-note#9075) ✨ siyuan-note#9032 ✨ siyuan-note#9032 🐛 The update button is not displayed after the marketplace package version is updated Fix siyuan-note#9074 ✨ siyuan-note#9032 🎨 Improve asset file content search preview escaping siyuan-note#9073 🎨 Improve asset file content search preview escaping siyuan-note#9073 🎨 Improve EPUB asset file content parsing siyuan-note#9072 ♻️ siyuan-note#9032 ... # Conflicts: # README.md
It was only found through today's test that the mobile does not support PDF parsing and an error will be reported under Android:
It will directly cause a crash under iOS (I guess wazero is not compatible with iOS). For PDF parsing, let's give up mobile support for now, I describe this limitation in the user guide. |
Otherwise, it is easy to cause the application to crash when indexing asset files on the mobile.
The text was updated successfully, but these errors were encountered: