Much better than trying to tweak the network settings in Firefox yourself, just use the fasterfox extension. But before you do that, you should definitely check out The Deer Park build of Firefox.
...