summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moore <rich@kde.org>2013-02-03 16:12:15 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-24 14:31:15 (GMT)
commit1df30fbd1e9ce54dd1076649162121b99700dc98 (patch)
tree63dae7d24d15c549a09b0101cf70abd78856c95d /src
parentb59aaa250da6ff22094818b6efe25453f278f42d (diff)
downloadQt-1df30fbd1e9ce54dd1076649162121b99700dc98.zip
Qt-1df30fbd1e9ce54dd1076649162121b99700dc98.tar.gz
Qt-1df30fbd1e9ce54dd1076649162121b99700dc98.tar.bz2
Increase the size of the QHostInfo cache.
This change increases the size of the DNS cache in QHostInfo from 64 entries to 128. Given the figures in the google chrome performance paper http://www.igvita.com/posa/high-performance-networking-in-google-chrome/ this should mean we can cache enough entries to handle 4 tabs at once. (cherry picked from commit fd9013658bab096839154ae6e68adfd1a4e10189) Change-Id: I824aa4127b6067c3ed6a2be3dbc819288ba41d1c Reviewed-by: Peter Hartmann <phartmann@blackberry.com> Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src')
-rw-r--r--src/network/kernel/qhostinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp
index 6380b6e..2daee11 100644
--- a/src/network/kernel/qhostinfo.cpp
+++ b/src/network/kernel/qhostinfo.cpp
@@ -749,8 +749,8 @@ void Q_AUTOTEST_EXPORT qt_qhostinfo_enable_cache(bool e)
}
// cache for 60 seconds
-// cache 64 items
-QHostInfoCache::QHostInfoCache() : max_age(60), enabled(true), cache(64)
+// cache 128 items
+QHostInfoCache::QHostInfoCache() : max_age(60), enabled(true), cache(128)
{
#ifdef QT_QHOSTINFO_CACHE_DISABLED_BY_DEFAULT
enabled = false;