[Webkit-unassigned] [Bug 31826] [Qt] Make use of QNetworkReply::rawHeaderPairs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 24 14:23:44 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31826





--- Comment #4 from Holger Freyther <zecke at selfish.org>  2009-11-24 14:23:44 PST ---
Thanks. The explanation is the following.


The internal Qt representation for headers is a QList (linked list) that
contains a pair of headers (header name, value). And the current code is asking
for a QStringList of header names (goes through the linked list to construct
the temporary QStringList).

And then for each QString in this QStringList it is asking for the
rawHeaderValue (which is doing a linear search in the internal linked list to
find the value). So in the worse case you have two for loops in each other
iterating over the number of elements to find the header value.


The new API is giving access to the header pairs directly so we end up with
just one for loop.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list