What are the ways to minimize data writes?

I bumped into this Firefox is eating your SSD - here is how to fix it in another context than TiddlyWiki and got two questions.

  1. Since TiddlyWiki runs in the browser as well, and single HTML file wikis are a few megabytes, does it take part in this horror? Does a browser with a loaded reasonably big wiki have to write big amounts of data in its session storage?

  2. Regarding single file TiddlyWikis - are they themselves offenders? If a 10MB wiki gets autosaved to disk entirely every time a tiddler is changed (add the state tiddlers here as well(?)), if it’s also encrypted, so changed data is unique everytime, then it only takes 100 times to accumulate 1GB of written data. The most obvious way here is to use Node.js if it’s possible, then only single files containing changed tiddlers get rewritten. Are there any other less obvious approaches to minimize the amount of TiddlyWiki data that gets written to disk?

Do note that this article is 8 years old. I haven’t followed up to see if this has improved meanwhile, but I would expect it.

Was mentioned here https://www.linuxquestions.org/questions/slackware-14/life-expectancy-of-nvme-drives-4175744303/

The thread is recent

If you are concerned with single file wikis, or you are accessing one over a slow link, turn off autosave and only save occasionaly after a big change or when exiting if your system is stable. If you included local storage for security of the data, I am not sure if it commits to disk or memory first, probably disk as I have had a wikis restore after a suddent reboot.