Changes between Version 4 and Version 5 of EfficientStrings


Ignore:
Timestamp:
Aug 27, 2012 12:23:50 PM (12 years ago)
Author:
benjamin@webkit.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EfficientStrings

    v4 v5  
    1111The safest option is ''ASCIILiteral("Foo")''. It produces the same code size as String("Foo") while being faster.
    1212
    13 The difference between the version is if the length of the string is included or not. Having the size given in the constructor makes the constructor faster. Having the size also makes the code bigger, which is a problem when the code is executed infrequently.
     13The difference between the version is if the length of the string is included or not. Having the size given in the constructor makes the constructor faster. Having the size also makes the code bigger, which is a problem when the code is executed infrequently.[[BR]]
     14In general, use ASCIILiteral unless you can show improvement on a benchmark by using ConstructFromLiteral.
    1415
    1516==== Not creating a string ====