1.

Solve : Optimize Firefox Performance Via Defragmentation Add-on Applications?

Answer» http://www.mydigitallife.info/2009/09/06/optimize-firefox-performance-via-defragmentation-add-on-applications/

Quote
Mozilla Firefox browser version 3 and above stores a variety of configuration data such as bookmarks, history, RSS feeds, cookies, etc in its self managed and self contained SQLite databases. Over time, the database will get fragmented. The size of the database will get inflated with more and more junk data mixed together with real data. This will technically affect the browser’s performance, e.g. slow down the browser’s loading, delay the start up, CAUSE overall speed drops, etc. To boost and optimize the Firefox browser’s performance, users need to defragment the browser from time to time. By defragmenting the database, users will actually “vacuum” the database to get rid of old and junk data, thus optimizing its performance again.

Mozilla Firefox has disclosed a simple vacuum technique by running some codes in the Error Console command within the browser to defragment the SQLite database:

* Go to MenuTools -> Error Console
* Paste the following in the “Code:” text-box: Code: [Select]Components.classes["@mozilla.org/browser/nav-history-service;1"].getService(Components.interfaces.nsPIPlacesDatabase).DBConnection.executeSimpleSQL("VACUUM"); * Press Enter or click Evaluate. The database will thence be vacuumed immediately.

The PROCESS will speed up the browser’s performance once it is completed done. Nevertheless, if users do not want to try this measure or encounter problems while doing this, there are some Firefox add-ons which users can add to their Firefox browser to defragment and vacuum the SQLite database.

Two add-ons with links to them listed at the above site.Broni,
I tried running the code in the error console window...hitting Enter and pressing evaluae did nothing...
I DLoaded the 2nd app listed and ran it and am seeing a noted improvement in FireFox's response...Thanx Again.

P.S. It does not install as an extension so i just have it in my Tools folder on the Desktop for easy running...If I copy and paste that code, I get "Error: illegal character"

Investigation showed that the opening quote before VACUUM and the closing quote after needed to be changed to regular double quotes. Then it works. (Well, it didn't give an error)

Changed it to double quotes open and closing and it just sits there here on my end...Ran the new revised code...nuthin...
But i just optomised using the other tool not long ago so it may have not needed anything...

I'll try it later...Thanx !Here is the cleaned up code

Code: [Select]Components.classes["@mozilla.org/browser/nav-history-service;1"].getService(Components.interfaces.nsPIPlacesDatabase).DBConnection.executeSimpleSQL("VACUUM");I edited my INITIAL post with Salmon's code.
Initially, I ran the second application, so I really didn't check the code.
Since, I defragged already, I'm not 100% sure, if the command is doing anything, but when I click "Evaluate", the cursor disappears for a few moments, so I think, it does something.Quote from: Broni on September 07, 2009, 10:22:41 AM
when I click "Evaluate", the cursor disappears for a few moments, so I think, it does something.

I have a very quiet PC and the loudest sound is the HDD, I had never done this operation before, and I heard quite a lot of HDD activity immediately after clicking "Evaluate", and Firefox SEEMS more brisk.
Very well then The Code DIDNT work for me but i tried out the second application and firefox wasn't to going to slow for me but i can definitely tell an improvement and am going to install it on my gfs computer as well. Thank you!


Discussion

No Comment Found