Changeset 64012 in webkit


Ignore:
Timestamp:
Jul 24, 2010 1:02:36 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-07-24 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Re-order whitespace checks in the tokenizer
https://bugs.webkit.org/show_bug.cgi?id=42923

This saves about 0.5% on the parsing benchmark.

  • html/HTMLTokenizer.cpp:
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64011 r64012  
     12010-07-24  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Re-order whitespace checks in the tokenizer
     6        https://bugs.webkit.org/show_bug.cgi?id=42923
     7
     8        This saves about 0.5% on the parsing benchmark.
     9
     10        * html/HTMLTokenizer.cpp:
     11
    1122010-07-24  Andreas Kling  <andreas.kling@nokia.com>
    213
  • trunk/WebCore/html/HTMLTokenizer.cpp

    r64010 r64012  
    5959inline bool isTokenizerWhitespace(UChar cc)
    6060{
    61     return cc == '\x09' || cc == '\x0A' || cc == '\x0C' || cc == ' ';
     61    return cc == ' ' || cc == '\x0A' || cc == '\x09' || cc == '\x0C';
    6262}
    6363
Note: See TracChangeset for help on using the changeset viewer.