Better memory consumption on annotated PDFs

I was recently looking at a PDF document and suddenly noticed Evince (GNOME’s PDF reader) was using a lot of memory for a ~100 page article that mostly contained text. Like a good FLOSS citizen, I looked upstream if there were any issues that matched what I had just seen, and that’s where I found my first clue on the problem. Someone reported that if you tried to load a document with a lot of annotations, memory consumption would immediately go up by several hundreds of Megabytes!...

January 4, 2020

GListStore itches

Hi everyone! After hesitating for months already, I’ve finally decided to set up my own development blog, in the hope that it creates more awareness of FLOSS software (and other related projects I work on). For starters, let’s continue Philip Withnall’s excellent effort in making a GLib API mini-series of blog posts. TL;DR: Starting from GLib 2.64, you can use g_list_store_find() and g_list_store_find_with_equal_func(). GListStore A common pattern in GTK to use display a list of items is by creating a GListModel —which holds the the items— and then binding that to a GtkListBox using gtk_list_box_bind_model() so that you can cleanly separate UI logic from updates to your data model....

November 30, 2019