elmer_42
November 10th, 2008, 09:32 PM
I just read an interesting topic on the Arch forums, and I've taken two actions that seem to have dramatically increased the rendering speed of Firefox. After applying the following edits, Firefox seems to be much faster to me. By the time I open a page in a new tab and switch to it, it has already been loaded.NOTE: Whatever you do to your system is your own fault, don't blame me for it. I offer this tip with no warranty whatsoever.
First, I backed up the files I would need to edit.
cp ~/.bashrc ~/.bashrc_bak
sudo cp /etc/X11/xorg.conf ~/xorg.conf
Next, I added the following to my ~/.bashrc (I hear that if you use GDM you need to add it to /etc/profile). This disables Pango, which is a library for laying out and rendering of text. If after doing this your fonts look weird, do not hesitate to restore your backup with cp ~/.bashrc_bak ~/.bashrc. However, my fonts did not change at all.
export MOZ_DISABLE_PANGO=1
Finally, I added the following to the section of /etc/X11/xorg.conf that referred to my graphics card. This is usually recommended for ATI cards, but there have been a few nVidia users (including myself) who have used it. Sometimes some pages with heavy graphics do not look right after doing this. This did not happen to me, but I have found a few cases where it did. If this happens to you, you can revert to your backup with sudo cp ~/xorg.conf /etc/X11/xorg.conf. NOTE: This edit is not as important as the other; in fact it is more risky and has less of a payoff.
Option "MigrationHeuristic" "greedy"
After editing these files you will need to restart X (Ctrl+Alt+Backspace, then run startx)
First, I backed up the files I would need to edit.
cp ~/.bashrc ~/.bashrc_bak
sudo cp /etc/X11/xorg.conf ~/xorg.conf
Next, I added the following to my ~/.bashrc (I hear that if you use GDM you need to add it to /etc/profile). This disables Pango, which is a library for laying out and rendering of text. If after doing this your fonts look weird, do not hesitate to restore your backup with cp ~/.bashrc_bak ~/.bashrc. However, my fonts did not change at all.
export MOZ_DISABLE_PANGO=1
Finally, I added the following to the section of /etc/X11/xorg.conf that referred to my graphics card. This is usually recommended for ATI cards, but there have been a few nVidia users (including myself) who have used it. Sometimes some pages with heavy graphics do not look right after doing this. This did not happen to me, but I have found a few cases where it did. If this happens to you, you can revert to your backup with sudo cp ~/xorg.conf /etc/X11/xorg.conf. NOTE: This edit is not as important as the other; in fact it is more risky and has less of a payoff.
Option "MigrationHeuristic" "greedy"
After editing these files you will need to restart X (Ctrl+Alt+Backspace, then run startx)