redirected to dev-tech-network.
On 8/11/11 12:30 PM, Josh Aas wrote:
I was looking into DNS caching/pre-fetching features. From the list of related
features below, which ones do we already do? For the ones we don't do, anyone
have thoughts on priorities?
- Kick off DNS queries for pages displayed on launch very early in the Firefox
launch sequence. This can be based on a known list of pages or something
similar to Chrome's technique, which is based on the first ten or so pages
loaded after the last launch.
no.
- Kick off DNS queries for pages we think users might navigate to. This could
be based on HTML link scraping, with logic to avoid evicting more important DNS
queries from the cache due to cache size constraints.
yes - as for eviction, queries that aren't based off of pre-fetches are
given higher priority (i.e. are not queued behind prefetch lookups), and
the real use of the name is going to help keep them from being discarded
by the LRU algorithm when they are competing for space with all those
unused prefetch names. At least that was the theory when I wrote it (and
it bore out in my local tests) - telemetry would be good :)
- Support 'link rel="dns-prefetch"' in pages to allow authors to suggest DNS
caching.
not sure.
- Perhaps update DNS cache based on awesome bar contents.
no[2]. But I wrote a patch for it that raised privacy objections which
brian later said could probably be resolved.
- Probably don't need to actually store pre-fetched DNS request, just need to
warm the OS cache (which I assume is a path we use). If we currently store the
results ourselves we might want to stop doing it - less work on our end, it
basically duplicates functionality the OS layer already has. Warming the OS
cache can be done via threads that do nothing after completing DNS queries. One
downside is that we're limited by OS cache size constraints.
actually, its better if we cache. OS caches vary widely in size without
a standard way to obtain that information. By caching locally we can
have some control over overflow.
-Pat
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network