@chergert I feel like you would know this off the top of your head, in a GtkSorter, to compare datetimes, is it faster to use a custom sorter and DateTime.compare or convert to Unix time and use a NumericSorter?
@danirabbit we recently did something similar in Calendar: https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/770
In our case the problem was that we would repeatedly compare the same dates and using the standard GDate functions means a timezone conversion every time. Profiling showed that this part was significantly slowing down Calendar so Georges fixed it by converting dates to timestamps once and then compare the timestamps directly.
I guess what that MR shows is that such a change is relatively straight forward, so I would not bother yet in your case and first do some profiling to determine if it is actually a problem :)
@nwimmer ah yeah that was my inclination was to convert to timestamps. We actually have to convert to timestamps anyways to store notifications to be reloaded in later sessions so I think it makes sense to just switch here