Revision 884886

Go back to digest for 23rd November 2008

Features in KDE Base

Germain Garand committed changes in /trunk/KDE/kdelibs:

Implement DNS prefetch mechanism à la Google Chrome.

The point is to speed up page access by resolving host names early.

Host names (up to 42 per page) found in links' hrefs are queued for early resolution at a moderate pace (one every 200ms) using KIO's DNS cache.

When TTL interval of DNS cache is reached and the page still exists, the anticipated resolution is performed again.

This mechanism can be restricted to resolution of only bare SLDs and www sub-domain, or may be entirely disabled using either the 'DNSPrefetch' configuration option or KHTMLPart's setDNSPrefetch() override.

It is also automatically disabled when setOnlyLocalReferences() has been set on the part (aka. "mail reader mode").

File Changes

Modified 8 files
  • /trunk/KDE/kdelibs
  •   /khtml/khtml_part.cpp
  •   /khtml/khtml_part.h
  •   /khtml/khtml_settings.cpp
  •   /khtml/khtml_settings.h
  •   /khtml/khtmlpart_p.h
  •   /khtml/html/html_inlineimpl.cpp
  •   /kio/kio/hostinfo.cpp
  •   /kio/kio/hostinfo_p.h
8 files changed in total