Thoth 0.8.0: fast with ten pages or ten thousand
Thoth 0.8.0 is about speed. Notes collections grow for years, and the app should not slow down as yours does. This release removes the places where Thoth did more work the more pages you had.
A save costs the same at any size
Until now, every save made Thoth check every file in your Private Space, to keep its index in step. With a few hundred pages you would not notice. With thousands, each save did thousands of small checks.
Now Thoth checks only the page it saved. In our test with 120 pages, one save went from 338 requests to the app's core down to 68, and that number no longer grows with the number of pages.
Changes you make in another app, and new or deleted files, still get a full check.
After a save, Thoth also stopped redrawing the window a second time when the file watcher reported its own change.
A large Private Space opens in one sweep
When you open a Private Space you have opened before, Thoth looks at every file to see what changed while it was closed. It used to ask about each folder and each file one at a time. Now it reads the whole folder in a single request.
With 2,000 pages that is 22 requests instead of 2,102, and with 5,000 pages it is still 22.
Less to load at start
The app now starts with about a quarter less code: 1.9 MB instead of 2.5 MB. Parts most sessions never open load the first time you use them: the Plain editor, Agent Hub sessions, import, moving pages to a workspace, and the mascot.
A page you left in Plain mode still opens in Plain mode. It waits a moment for the editor the first time.
Long pages stay quick to type in
Before each save, Thoth checks that the Markdown it writes keeps your text exactly as it was. On a very long page that check read the whole page every time.
It now checks only the section you changed, between headings, and falls back to the full check whenever it cannot be sure.
On a page with 200 sections, the check after changing one paragraph went from 59 ms to 2 ms. What gets saved is the same, byte for byte: we compared both methods on 3,000 random pages and edits.
How to get it
From 0.2.3, click Update when the app tells you 0.8.0 is out. From 0.2.2 or older, install it from the download section. The changelog lists every change.
Questions
Do I need to do anything after updating?
No. Your pages, settings and workspaces are as you left them.
Is anything different when I write?
Only the speed. Where your Markdown is saved and what it contains are unchanged.
I run my own server. Should I update it?
You can, but nothing in the server changed apart from how its image is built. The server image for 0.7.1 did not build, so 0.8.0 is the next one after 0.7.0.
