- Podcasts
- Planet Python – The Open Sourcerer
- “Getting Things GNOME” 0.5 released!
About this episode
It is time to welcome a new release of the Rebuild of EvanGTGelion: 0.5, “You Can (Not) Improve Performance”!
This release of GTG has been 9 months in the making after the groundbreaking 0.4 release. While 0.4 was a major “perfect storm” overhaul, 0.5 is also a very technology-intensive release, even though it was done in a relatively short timeframe comparatively.
Getting Things GNOME 0.5 brings a truckload of user experience refinements, bugfixes, a completely revamped file format and task editor, and a couple of notable performance improvements. It doesn’t solve every performance problem yet (some remain), but it certainly improves a bunch of them for workaholics like me. If 0.4 felt a bit like a turtle, 0.5 is a definitely a much faster turtle.
If that was not enough already, it has some killer new features too. It’s the bee’s knees!
To benefit from one performance improvement in particular, it requires the new version of liblarch, 3.1, that we have released this month. GTG with the latest liblarch is available all-in-one in a Flatpak update near you. 📦
This release announcement and all that led up to it was, as you can imagine, planned using GTG:
“Who’s laughing now eh, señor Ruiz?”As you can see, I came prepared. So continue reading below for the summary of improvements, I guarantee it’ll be worth it.
Some brief statisticsBeyond what is featured in these summarized release notes below, GTG itself has undergone roughly 400 changes affecting over 230 files, and received hundreds of bug fixes, as can be seen here. In fact, through this development cycle, we have crossed the 6,000 commits mark!
If you need another indication of how active the project has been in the last 9 months, I have received over 950 GTG-related emails since the 0.4 release last July.
We are thankful to all of our supporters and contributors, past and present, who made GTG 0.5 possible. Check out the “About” dialog for a list of contributors for this release.
New features Recurring TasksThanks to Mohieddine Drissi and Youssef Toukabri, tasks can now be made recurring (repeating). This allows you to keep reminding yourself that you need to clean your room every Saturday, and then not do it because it’s more fun to spend your whole Saturday fixing GTG bugs!
- In the task editor, recurrence can be toggled with the dedicated menubutton that shows a nice user interface to manage the recurrence (daily, every other day, weekly, monthly and yearly).
- Recurring tasks can also be added from the main window, using the “quick add” entry’s syntax.
The old tag icons have been replaced by emojis. I decided it would be best for us to switch to emojis instead of icon-based emblems, because:
- The availability of emblem icons varies a lot from one system to another, and from one icon theme to another;
- In recent years, emblem icons on Linux have become quite a mismatch of styles, and their numbers in standard themes have also decreased;
- Emojis are scalable by default, which makes them better for HiDPI displays (while traditional pixmap icons still are a hit-or-miss);
- There is a much, much, much wider choice of emojis (for every conceivable situation!) than there are emblem icons on typical Linux systems;
- It’s simply easier to deal with, in the long run. 😌
Unfortunately, this means that when you upgrade from 0.4 to 0.5, the old emblem icons will disappear and you will need to choose new emblems for your tasks.
Undead HamsterThe GTG plugin to interface with Hamster has been brought back to life by Francisco Lavin (issue #114 and pull request #465). I have not personally tested this. I’m still a bit worried about the ferrets rising from their graves.
Performance improvementsfor power users An elegant search trigger
for a more… civilized age
The filter-as-you-type global live search in GTG now uses a timeout approach (it waits a fraction of a second until after you stopped typing). This changes many things:
- No more spamming the database and the UI’s treeview
- The UI stays much more responsive, and you can see your characters being typed smoothly instead of appearing 15 seconds later
- It won’t hog your CPU nearly as much
- You get search results much faster: the results now tend to show up within a second after you stop typing, rather than a linear or exponential amount of time. For example, with 1000 tasks, it is now over 5 times faster (ex: bringing down the search time from 17+ seconds to 3 seconds), and the difference would be even more drastic if you have more tasks than that.
As a result of the changes proposed in pull request #530 and follow-up PR #547, for issue #402, most operations switching between various representations of your tasks will now be 20% to 200% faster (depending on how your tasks are structured):
- Faster startup
- Faster switching between tags (particularly when inside the “Actionable” view)
- Faster mid-night refreshing
- It most likely makes the global search feature faster, too
However, changing between global view modes (Open/Actionable/Closed) is now a bit slower the first time around (but is instantaneous afterwards, until a filtering change occurs).
It’s a performance tradeoff, but it seems to be worth it. Especially when you have lots of tasks:
Whoa, with @GetThingsGNOME 0.5, for the first time ever, my 1200+ tasks launch in 7 seconds. Before upgrading, version 0.4 needed 37 seconds to do the same thing.
— Jeff 🎆 (@nekohayo) April 12, 2021
Switching between tags is also instantaneous, and so is searching.
I underestimated those perf optimizations 🚀
Note that to benefit from these changes, GTG 0.5 depends on the newly released version of liblarch (3.1) we have published this month.
Faster read/write operations on the data file 🚀The switch to LXML as our parser ensures any operations on the local file format now happen instantly (less than a millisecond for a normal/lightweight task lists, and up to 25 milliseconds for heavy-duty 1000-tasks lists like mine). This was originally such a big deal that we thought we’d nickname this release “¿Que parser, amigo?” … but other major improvements kept happening since then, so this release is not just about the pasa!
Less micro-freezes when focusing task windows Pictured: me, waiting for the task editor windows to un-freeze when I focus them.Users with a thousand tasks will probably have noticed that GTG 0.4 had a tendency to painfully lock up for a couple of seconds when focusing/defocusing individual task editor windows.
Sure, “It doesn’t catastrophically lock up in your face multiple times per day anymore” doesn’t sound like a feature in theory, but it is a usability feature in practice.
Now, even when typing inside the new Task Editor and making lots of changes, it remains butter-smooth.
Part of it might be because it now uses a timer-based approach to parsing, and part of it is probably due to the code having been refactored heavily and being of higher quality overall. It just tends to be better all around now, and I’ve tried fairly hard to break it during my smoke-testing, especially since a lot of the improvements have also been tied to the major file format redesign that Diego implemented.
All in all, I’m not sure exactly how it accomplishes better reliability, to be honest, so we’ll just assume Diego secretly is a warlock.
50% more awesome task editingOh yeah, speaking of the task editor…
Rewriting the Task Editor’s content area and its natural language parser brought many user-visible improvements in addition to the technological improvements:
- The new timeout-based parser is faster (because we’re not spamming it like barbarians), more reliable, and now gains the ability to recognize subtasks (lines starting with “-“) live, instead of “after pressing Enter.” This also makes copy-pasting from a dashed list easier, as it will be converted into many subtasks in one go
- Clicking on a tag inside the task editor’s text selects the tag in the main window
- Tags’ text highlight color now uses the tag’s chosen emblem color
- Subtasks now have GTK checkboxes!
- Completed subtasks show up in normal strikethrough text style
- Opening a subtask takes care of closing the parent task, and the other way around (opening a parent task closes the subtask window), minimizing the amount of utility windows cluttering your view (and reducing the chances of making conflicting changes)
- Now supports subheadings, in Markdown format (type # title). Now that it supports some basic rich-text formatting features, even Grumpy Sri will be happy with this release:
Here is a short demonstration video that lets you see the improved “parsing as you type” engine in action:
Other user interface improvements- A dark mode toggle is now available in the preferences (stemming from