Changeset 52079 in webkit


Ignore:
Timestamp:
Dec 13, 2009 7:10:56 PM (14 years ago)
Author:
zecke@webkit.org
Message:

[Qt] Implement initializeMaximumHTTPConnectionCountPerHost.

Qt allows to have three connections per host on Symbian, for
every other platform the limit is set to six connections per
host but the default implementation will only schedule four
connections per host.
In a manual test we seem to get the best loading speed by
going with Qt's limit and schedule two more jobs to allow Qt
to prepare them.

  • platform/network/ResourceRequestBase.cpp:
  • platform/network/qt/ResourceRequestQt.cpp:

(WebCore::initializeMaximumHTTPConnectionCountPerHost):

Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52073 r52079  
     12009-11-30  Holger Hans Peter Freyther  <zecke@selfish.org>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Implement initializeMaximumHTTPConnectionCountPerHost.
     6        https://bugs.webkit.org/show_bug.cgi?id=31849
     7
     8        Qt allows to have three connections per host on Symbian, for
     9        every other platform the limit is set to six connections per
     10        host but the default implementation will only schedule four
     11        connections per host.
     12        In a manual test we seem to get the best loading speed by
     13        going with Qt's limit and schedule two more jobs to allow Qt
     14        to prepare them.
     15
     16        * platform/network/ResourceRequestBase.cpp:
     17        * platform/network/qt/ResourceRequestQt.cpp:
     18        (WebCore::initializeMaximumHTTPConnectionCountPerHost):
     19
    1202009-12-13  Dan Bernstein  <mitz@apple.com>
    221
  • trunk/WebCore/platform/network/ResourceRequestBase.cpp

    r52005 r52079  
    391391}
    392392
    393 #if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) && !PLATFORM(CHROMIUM) && !PLATFORM(ANDROID)
     393#if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) && !PLATFORM(CHROMIUM) && !PLATFORM(ANDROID) && !PLATFORM(QT)
    394394unsigned initializeMaximumHTTPConnectionCountPerHost()
    395395{
  • trunk/WebCore/platform/network/qt/ResourceRequestQt.cpp

    r51174 r52079  
    11/*
    2     Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
     2    Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
    33
    44    This library is free software; you can redistribute it and/or
     
    2727
    2828namespace WebCore {
     29
     30// Currently Qt allows three connections per host on symbian and six
     31// for everyone else. The limit can be found in qhttpnetworkconnection.cpp.
     32// To achieve the best result we want WebKit to schedule the jobs so we
     33// are using the limit as found in Qt. To allow Qt to fill its queue
     34// and prepare jobs we will schedule two more downloads.
     35unsigned initializeMaximumHTTPConnectionCountPerHost()
     36{
     37#ifdef Q_OS_SYMBIAN
     38    return 3 + 2;
     39#else
     40    return 6 + 2;
     41#endif
     42}
    2943
    3044QNetworkRequest ResourceRequest::toNetworkRequest(QObject* originatingFrame) const
Note: See TracChangeset for help on using the changeset viewer.