siyuan-note / siyuan

A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang.
https://b3log.org/siyuan
GNU Affero General Public License v3.0
22.97k stars 1.62k forks source link

Pandoc single instance instead of binary in each workspace #13221

Closed asim215 closed 2 hours ago

asim215 commented 1 day ago

In what scenarios do you need this feature?

Currently each workspace instance takes about 150 Mb with almost empty user data. I figured out that it supplied each workspace with itself pandoc binary. It is inefficient. I wanted to store my notes in backup, but storing many same pandoc instances useless for space. Where Obsidian takes ~1.2 Mb of data with notes. Each workspace siyuan takes more than 151 Mb of space. I have 5 projects with almost no notes in them and total amount it is 808 Mb of storage!

Describe the optimal solution

One binary pandoc which supplies with siyuan package not for each existing workspace. Or if possible use system pandoc if it is installed on that system. Or install it if you will use it, because you not always use export.

Describe the candidate solution

No response

Other information

No response

88250 commented 2 hours ago

Settings - Export - Path to Pandoc executable

If you manually specify a non-default Pandoc path, the built-in Pandoc will not be initialized.