Mittwoch, 17. Dezember 2008

Firefox 3 Optimierung


batch datei speichern im firefox profil zusammen mit der sqlite3 datei

> BATch Datei , cmd Befehle in Windows (DOS)

vaccumfirefox3.bat

@echo off

if not exist fixcount.txt echo J > fixcount.txt

FIND "A" fixcount.txt
IF ERRORLEVEL 1 GOTO none
IF ERRORLEVEL 0 GOTO zero
:none
FIND "B" fixcount.txt
IF ERRORLEVEL 1 GOTO ntwo
IF ERRORLEVEL 0 GOTO one
:ntwo
FIND "C" fixcount.txt
IF ERRORLEVEL 1 GOTO nthree
IF ERRORLEVEL 0 GOTO two
:nthree
FIND "D" fixcount.txt
IF ERRORLEVEL 1 GOTO nfour
IF ERRORLEVEL 0 GOTO three
:nfour
FIND "E" fixcount.txt
IF ERRORLEVEL 1 GOTO nfive
IF ERRORLEVEL 0 GOTO four
:nfive
FIND "F" fixcount.txt
IF ERRORLEVEL 1 GOTO nsix
IF ERRORLEVEL 0 GOTO five
:nsix
FIND "G" fixcount.txt
IF ERRORLEVEL 1 GOTO nseven
IF ERRORLEVEL 0 GOTO six
:nseven
FIND "H" fixcount.txt
IF ERRORLEVEL 1 GOTO neight
IF ERRORLEVEL 0 GOTO seven
:neight
FIND "I" fixcount.txt
IF ERRORLEVEL 1 GOTO nnine
IF ERRORLEVEL 0 GOTO eight
:nnine
FIND "J" fixcount.txt
IF ERRORLEVEL 1 GOTO error
IF ERRORLEVEL 0 GOTO nine

:error
ECHO There was some error.
GOTO exit

:zero
Echo "Cleaned one run ago"
echo B > fixcount.txt
Goto exit

:one
Echo "Cleaned two runs ago"
echo C > fixcount.txt
Goto exit

:two
Echo "Cleaned three runs ago"
echo D > fixcount.txt
Goto exit

:three
Echo "Cleaned four runs ago"
echo E > fixcount.txt
Goto exit

:four
Echo "Cleaned five runs ago"
echo F > fixcount.txt
Goto exit

:five
Echo "Cleaned six runs ago"
echo G > fixcount.txt
Goto exit

:six
Echo "Cleaned seven runs ago"
echo H > fixcount.txt
Goto exit

:seven
Echo "Cleaned eight runs ago"
echo I > fixcount.txt
Goto exit

:eight
Echo "Cleaned nine runs ago"
echo J > fixcount.txt
Goto exit

:nine
Echo "Cleaning"
echo A > fixcount.txt
for %%i in (*.sqlite) do @echo VACUUM; | sqlite3 %%i
Goto exit

:exit

start "" """C:\Programme\Mozilla Firefox\firefox.exe"

exit

Da der Firefox 3 SQLite Datenbanken für so ziemlich alles verwendet, bringt es durchaus Performancevorteile wenn man die zwischendurch optimiert. Unter Linux Unix muss man dafür das sqlite3-Paket installiert haben, den Kommandozeilenclient für SQLite Datenbanken. Das Optimieren ist ganz einfach:

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

  • For Linux
    $ for i in *.sqlite; do echo "VACUUM;" | sqlite3 $i ; done
  • For Windows
    for %i in (*.sqlite) do @echo VACUUM; | sqlite3 %i
Für Windows

sqlite-3 downloaden downloaden und in den Firefox profil ordner entpacken
Ins Verzeichins gehen vom firefox

C:\Dokumente und Einstellungen\benuztername\Anwendungsdaten\Mozilla\Firefox\Profiles\[Profilkennung]
und for %i in (*.sqlite) do @echo VACUUM; | sqlite3 %i

eingeben.







Firefox/Tuning

Hier einige Optimierungsvorschläge um den Firefox zu beschleunigen.Die Datei user.js erstellen im Firefox profil.
Linux
cd .mozilla/firefox/[Profilkennung]
nano user.js
Windows


C:\Dokumente und Einstellungen\benuztername\Anwendungsdaten\Mozilla\Firefox\Profiles\[Profilkennung]
und folgendes einfügen

#tweaked firefox user.js
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);
user_pref("ui.submenuDelay", 0);
user_pref("network.dns.disableIPv6", true);
user_pref("mousewheel.withnokey.numlines", 15);
user_pref("mousewheel.withnokey.sysnumlines", false);

Turning off anti-phishing to speedup Firefox

The anti-phishing features of Firefox may cause Firefox to become slow to start or exit, and might also affect the browsing speed since Firefox apparently contacts google for every http request. The problem is that Firefox maintains a sqlite database that might grow quite big, and reading and writing to this database begins to take some time when it grows bigger. If you feel that you don't need Firefox to tell you which sites may be suspect you can disable this feature:

  1. Turn off the following options under the security tab in preferences: "Tell me if the site I'm visiting is a suspected Attack site" and "Tell me if the site I'm visiting is a suspected forgery".
  2. Delete all files beginning with urlclassifier in your profile folder (~/.mozilla/firefox/********.default where ******** is some combination of letters and numbers. default might be something else if you have created a non-default profile). Some of these files might be recreated by Firefox, but they won't grow any larger than their initial size.
rm -i ~/.mozilla/firefox/*.default/urlclassifier*

IPv6 deaktivieren

Es kann unter gewissen Netzwerkkonstellationen vorkommen, dass Firefox bei aktivierter IPv6-Unterstützung sehr langsam ist, oder seiten gar nicht geladen werden können. Um die IPv6-Funktion zu deaktivieren, muss man den entsprechenden Wert über „about:config“ auf „true“ setzen.

network.dns.disableIPv6

Sollte der Seitenaufruf allerdings funktionieren, sollte man diese Option so belassen, wie sie ist. Durch das deaktivieren der IPv6-unterstützung in Firefox erhält man keine Vorteile, wenn es auch mit aktivierter unterstützung funktioniert.


Firefox Tweaks

Speed Up Firefox Web Browser Tips

  • Applications -> Internet -> Firefox Web Browser
  • Mozilla Firefox
Address Bar -> about:config
Filter: ->
network.dns.disableIPv6 -> true
network.http.pipelining -> true
network.http.pipelining.maxrequests -> 8
network.http.proxy.pipelining -> true
  • Restart Mozilla Firefox

How to disable beep sound for link find function in Mozilla Firefox

  • Applications -> Internet -> Firefox Web Browser
  • Mozilla Firefox
Address Bar -> about:config
Filter: accessibility.typeaheadfind.enablesound -> false
  • Restart Mozilla Firefox

Setting the backspace button to go to a previous page

  • Applications -> Internet -> Firefox Web Browser
  • Mozilla Firefox
Address Bar -> about:config
Filter: -> browser.backspace_action -> 0
  • Restart Mozilla Firefox

Close the Download dialog quicker

  • Go to Applications -> Internet -> Firefox Web Browser
  • Put in your address bar
Address Bar -> about:config

Filter the configs options

Filter: -> alerts.totalOpenTime -> 500

Reduce the quantity of popups

  • Load Mozilla Firefox
  • Applications -> Internet -> Firefox Web Browser
  • Put in your address bar
Address Bar -> about:config
  • Filter the config options and change it to a reasonable number
Filter: -> dom.popup_maximum -> 5

Hide the Go Button

  • Load Mozilla Firefox
  • Applications -> Internet -> Firefox Web Browser
  • Put in your address bar
Address Bar -> about:config
  • Filter the config options and double click so it changes the result
browser.urlbar.hideGoButton -> Yes

Speed improvements using tmpfs

  • Load Mozilla Firefox
  • Applications -> Internet -> Firefox Web Browser
  • Put in your address bar
Address Bar -> about:config
  • Right click anywhere in the browser window and select
New -> String
  • Type in:
browser.cache.disk.parent_directory
  • press OK, and type in the new window:
/tmp