Speed up firefox

Firefox was getting a bit sluggish when typing a url in the location bar or closing firefox. The “wonderbar” in Firefox3 creates a few sqlite databases. The urlclassifier3.sqlite had grown to about 56MB.

After running this command:
for db in $(find $HOME/.mozilla -name *.sqlite); do echo "VACUUM;" | sqlite3 $db; done

Afterwards the database has shrunk to about 12.5MB and has sped up firefox considerably.

Note: Firefox or other mozilla based browser that store their profile in .mozilla need to be closed, otherwise the sqlite databases will be locked.


About this entry