my friend of mine found out that Firefox can run faster if it's database is purged of empty entries. Firefox database is using SQLite to manage its database
you can check your version by typing in CLI
if you don't have it you can obtain it here: http://www.sqlite.org/ or with
(exit typing .exit)
2)you'll need this script:
sudo apt-get install sqlite3
use gedit (or any other text editor) to paste text in it,then save it in your home folder. Open your home folder, right-click on it, select properties. Then select Permissions tab and check the "Allow executing file as program" click Close.
proc="$(ps aux | grep $username | grep -v $0 | grep firefox | grep -v grep)"
if [ "$proc" != "" ]
echo "shutdown firefox first!"
for dir in $(cat ~/.mozilla/firefox/profiles.ini | grep Path= | sed -e 's/Path=//')
cd ~/.mozilla/firefox/$dir 2>/dev/null
if [ $? == 0 ]
echo "i'm in $(pwd)"
echo -e " running...\n"
for F in $(find . -type f -name '*.sqlite' -print)
sqlite3 $F "VACUUM;"
echo -e "done in $(pwd) ...\n"
echo -e "\n !!!! Nisam uspio uci u direktorij $dir, preskacem ga !!!!\n"
echo "Job finished";
Then close Firefox and run your script from terminal using ./name_of_script
when script done it's work start Firefox and you should feel the difference!