PDA

View Full Version : Optimize your firefox (linux only by now)


debernardis
07-15-2009, 09:15 AM
Linux needed: two rows of code may render your firefox much quicker:

cd .mozilla/firefox/*.default
for i in *.sqlite; do echo "VACUUM;" | sqlite3 $i ; done

It worked with mine :D

Taken here (http://lele85.netsons.org/blog/projects/) (there's also a firefox extension which does the same thing) - via Pollycoke (http://pollycoke.net/2009/07/14/optimus-db-per-velocizzare-firefox/)

timsamoff
07-15-2009, 10:03 AM
I did this on my Mac as well by installing SQLite for OS X. Honestly, though, I can't see a huge difference. Maybe it works better in Linux...?

Tim

debernardis
07-15-2009, 01:42 PM
Mine seems quicker in url bar searching, as well as in starting. Can't rule out placebo effect of course, and didn't think of taking times before and after the dbase packing. However, it seems harmless :)

Bundyo
07-15-2009, 07:15 PM
It is harmless. The VACUUM command removes the empty space and fragmentation from an SQLite db, thus it loads quicker (though the actual access time should be roughly the same). Of course if there was fragmentation, the gains will be more noticeable.