Google one-ups DNS pre-resolution, adds predictive pre-connections to Chromium
It's only been live for a few hours, and Google hasn't yet published before-and-after comparisons, but it looks like speculative pre-connection is now built into the developer tree of Chromium.As with most of these clever under-the-hood type changes, it's hard to describe just how much this will improve your browsing experience, but I'm going to try.
Basically, pre-connection opens an HTTP (or HTTPS) connection to a search engine before you've finished typing your query into the Chrome address bar (Omnibox). With the socket already open to Google (or Yahoo, or...) your complete search term can be quickly transmitted. Like the clever DNS pre-fetching already present in stable builds of Chrome, we're probably looking at significant speed-ups of half a second or more. Neat.
If that wasn't cool enough, the same patch includes pre-connection to 'subresources, such as images'.
If you navigate to a site that you've visited before, and your surfing history suggests you usually click through to a linked site, the speculate pre-connect code will open a socket to that site! The obvious example is searching Google Images: speculative pre-connect would open a socket to each of the search results. Thus, when you click an image, you'll again see a significant speed increase!
To test out the speculative pre-connection you'll have to grab a recent nightly build of Chromium and use the --enable-preconnect flag.












Comments
9
Subscribe to commentsinfoMay 18th 2010 9:36AM
Wow that sounds pretty handy. I suppose you would see an apparently significant difference in latency when browsing over something like a 3G dongle.
Sebastian AnthonyMay 18th 2010 7:04PM
Definitely great for high-latency links :)
As long as it only opens sockets and doesn't transfer too much data...
knoopxMay 18th 2010 9:41AM
DDOS attacks from google :)
NathanMay 18th 2010 11:09AM
Don't worry, they have the new "Google DDOS Protection Package" they'd be happy to sell you, to fix the new Chromium issues on your site.
BrianMay 18th 2010 1:09PM
How do I use the --enable-preconnect flag?
Sebastian AnthonyMay 18th 2010 7:03PM
I do it by right clicking the Chromium EXE -> create shortcut. I download the portable nightly, not the installer.
Then just put --enable-preconnect at the end of the Target text box!
(Google it.)
RyanMay 18th 2010 6:58PM
I'm wondering how many MB get used/wasted when you enable all of these prefetching options? Just curious.
Sebastian AnthonyMay 18th 2010 7:02PM
Good question :) I'm sure some benchmarks will emerge soon! If not... I'll see what I can conjure up.
Praveen PremchandranMay 19th 2010 3:49AM
Yeah, its going to be hard for people like me who use Broadbands with transfer caps... Its not like the extra Mbs of tranfer is going to kill me... But im someone who generally ends up on the hair's end of my transfer cap every single month. Not this can make it go across the line :P