Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
shortening mozilla-firefox startup-time/smaller db size
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5610
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 08, 2009 9:42 pm    Post subject: shortening mozilla-firefox startup-time/smaller db size Reply with quote

check out this link:

http://mozillalinks.org/wp/2009/07/vacuum-your-firefox-databases-for-better-performance/


when following the procedure the size of my places.sqlite went from 27 MB to 3 MB !

I'll have to restart my system to see the real startup-time of firefox but when in cache it's now 3 seconds (afaik it was much longer previously)


Quote:
step 1: get sqlite3, a single file command line SQLite database manager, for your platform (available for Linux, Windows, and Mac OS X).

Step 2: Copy the downloaded binary to your profile folder where all your .sqlite files reside.

Step 3: Close Firefox.

Step 4: From a command line prompt in your profile folder, run:

sqlite3 [SQLite database] VACUUM

replacing [SQLite database with the name of a SQLite file, like places.sqlite.

_________________
Unofficial minimal livecd x86/amd64 w/reiser4+truecrypt (by Neo2)
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
octoploid
n00b
n00b


Joined: 21 Oct 2006
Posts: 65

PostPosted: Sun Aug 09, 2009 3:08 pm    Post subject: Reply with quote

Or run this from your shell in your .mozilla/firefox/*.default dir :
Code:
for i in *.sqlite; do sqlite3 $i vacuum ; done

_________________
Myself and mine gymnastic ever
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3200

PostPosted: Sun Aug 09, 2009 3:35 pm    Post subject: Reply with quote

@kernelOfTruth: So did it noticeably improve the startup time?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5610
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Aug 09, 2009 4:18 pm    Post subject: Reply with quote

mikegpitt wrote:
@kernelOfTruth: So did it noticeably improve the startup time?


definitely YES ! :D

it went down from around 30 seconds to 11-15 seconds :wink:

as always YMMV :roll:
_________________
Unofficial minimal livecd x86/amd64 w/reiser4+truecrypt (by Neo2)
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Ahenobarbi
Developer
Developer


Joined: 02 Apr 2009
Posts: 345
Location: Warsaw, PL

PostPosted: Mon Aug 10, 2009 8:08 am    Post subject: Reply with quote

My after vaccuming my ~/.mozilla lost about 21MB ( 218M before, 197M after), but I don't think my Firefox starts faster.
Back to top
View user's profile Send private message
JesusSuperstar
n00b
n00b


Joined: 01 Sep 2009
Posts: 1

PostPosted: Tue Sep 01, 2009 12:32 am    Post subject: Reply with quote

It worked here. Certainly lower startup times. ;-)
_________________
I cut trees with axes
Back to top
View user's profile Send private message
Naib
Advocate
Advocate


Joined: 21 May 2004
Posts: 4076
Location: Removed by Neddy

PostPosted: Wed Sep 02, 2009 7:33 pm    Post subject: Reply with quote

nice, I might add it to my openbox startup script keep ff fresh :D
_________________
A free press is the unsleeping guardian of every other right that free men prize; it is the most dangerous foe of tyranny. Where men have the habit of liberty, the Press will continue to be the vigilant guardian of the rights of the ordinary citizen.
Back to top
View user's profile Send private message
Bircoph
Apprentice
Apprentice


Joined: 27 Jun 2008
Posts: 258
Location: Moscow

PostPosted: Wed Sep 23, 2009 4:43 pm    Post subject: Reply with quote

Naib wrote:
nice, I might add it to my openbox startup script keep ff fresh :D

I added this to my users crontab on per month basis.
However, it doesn't affect startup time greatly in my case.
_________________
Per aspera ad astra!
Back to top
View user's profile Send private message
Koala Kid
Guru
Guru


Joined: 09 May 2003
Posts: 376

PostPosted: Fri Sep 25, 2009 5:54 am    Post subject: Reply with quote

You might also want to do REINDEX

Code:
# find ~/.mozilla -name '*.sqlite' -print -exec sqlite3 {} REINDEX \;

_________________
Digital Gunfire
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4560
Location: Saint Amant, Acadiana

PostPosted: Fri Oct 09, 2009 5:36 am    Post subject: Reply with quote

Not exactly on topic but preload helps, too.
Back to top
View user's profile Send private message
lordcris
Apprentice
Apprentice


Joined: 09 Jul 2002
Posts: 248

PostPosted: Fri Oct 09, 2009 4:46 pm    Post subject: Reply with quote

Jaglover wrote:
Not exactly on topic but preload helps, too.


preload is a topping you want on every meal!
8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum