Changeset 155561 in webkit


Ignore:
Timestamp:
Sep 11, 2013, 2:02:36 PM (11 years ago)
Author:
mitz@apple.com
Message:

update-webkit-localizable-strings is at least 5.8x slower than it should be
https://bugs.webkit.org/show_bug.cgi?id=121178

Reviewed by Darin Adler.

  • Scripts/extract-localizable-strings: Quickly skip over lines that contain neither " nor /*.

Note that this does not change functionality, because the script already does not understand
the line continuation sequence (backslash followed by a newline).

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r155551 r155561  
     12013-09-11  Dan Bernstein  <mitz@apple.com>
     2
     3        update-webkit-localizable-strings is at least 5.8x slower than it should be
     4        https://bugs.webkit.org/show_bug.cgi?id=121178
     5
     6        Reviewed by Darin Adler.
     7
     8        * Scripts/extract-localizable-strings: Quickly skip over lines that contain neither " nor /*.
     9        Note that this does not change functionality, because the script already does not understand
     10        the line continuation sequence (backslash followed by a newline).
     11
    1122013-09-11  Anders Carlsson  <andersca@apple.com>
    213
  • trunk/Tools/Scripts/extract-localizable-strings

    r154547 r155561  
    145145            $inComment = 0;
    146146        }
     147
     148        next unless /(\"|\/\*)/;
    147149   
    148150        # Handle all the tokens in the line.
Note: See TracChangeset for help on using the changeset viewer.