WebCore:
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 Feb 2004 02:10:46 +0000 (02:10 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 Feb 2004 02:10:46 +0000 (02:10 +0000)
commitd857948a1bcea791003d4cac1fe36df472ef2b15
tree97487f2c333f6a51e1630e97dac15928228f97a3
parentc6d176b82ccc7be9d8e69a0d3d23e4bd8d95a181
WebCore:

        Reviewed by John.

- redo visited link history checking for a 2% speed improvement

        * kwq/KWQKHistoryProvider.mm:
        (KParts::HistoryProvider::contains): Don't make a KURL or an
NSString. Punt on canonicalization and directly pass the internal
Latin1 or unicode buffer.
        * kwq/KWQString.h:
        * kwq/KWQString.mm:
        (QString::hasFastLatin1): New method to check whether getting the
latin1 buffer is fast (doesn't allocate).
        * kwq/WebCoreHistory.h: add new methods to look up by raw latin1
or unicode buffer instead of NSString.

WebKit:

        Reviewed by John.

- redo visited link history checking for a 2% speed improvement

        * History.subproj/WebHistory.m:
        (-[_WebCoreHistoryProvider containsItemForURLString:]): Removed.
        (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]): Implemented.
For https and http URLs with empty path, add a slash. Make a CFString
using the passed-in latin1 buffer without copying.
        (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]): Ditto
for unicode.
        (matchLetter): New static helper function.
        (matchUnicodeLetter): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/kwq/KWQKHistoryProvider.mm
WebCore/kwq/KWQString.h
WebCore/kwq/KWQString.mm
WebCore/kwq/WebCoreHistory.h
WebKit/ChangeLog
WebKit/History.subproj/WebHistory.m