< < <

Reduced startup time for Liferea

Liferea is a RSS feed reader for Unix-like systems. The program uses an SQLite database for storing subscribed news feeds. Since version 1.8.0, Liferea performs a VACUUM on each startup to rebuild the entire database liferea.db. This is a horrible thing to do for larger database files, because this operation may take several minutes.

The patch below fixes this problem by removing the VACUUM operation from the program startup.

Patching Liferea

$ cd /usr/src
$ wget http://downloads.sourceforge.net/project/liferea/Liferea%20Stable/1.8.0/liferea-1.8.0.tar.gz
$ tar -zxvf liferea-1.8.0.tar.gz
$ wget http://www.vakuumverpackt.de/reducedstartuptimeforliferea/liferea-1.8.0-VACUUM.patch
$ patch -p0 < liferea-1.8.0-VACUUM.patch
$ cd liferea-1.8.0
$ ./configure --prefix=/opt/liferea-1.8.0
$ make
$ make install
$ /opt/liferea-1.8.0/bin/liferea --version

Performing VACUUM manually

$ sqlite3 ~/.liferea_1.8/liferea.db
...
sqlite> VACUUM;
sqlite> ^D
$

Download

» liferea-1.8.0-VACUUM.patch