[webkit-dev] Initializing String and AtomicString with literals
eric at webkit.org
Tue Aug 28 18:39:58 PDT 2012
The wiki might also note that:
String bar = ASCIILiteral("foo");
is not free. :) There is still a malloc() of a StringImpl under there.
On Mon, Aug 27, 2012 at 12:26 PM, Benjamin Poulain <benjamin at webkit.org> wrote:
> On Sun, Aug 26, 2012 at 10:15 AM, Ojan Vafai <ojan at chromium.org> wrote:
>> So, is the rule something like "Use ASCIILiteral unless you can show
>> improvement on a benchmark by using ConstructFromLiteral." Could you add
>> some simple explanation like that to the wiki page? As someone who doesn't
>> understand the implementation details, what's on the page right now doesn't
>> give me a clear enough rule of when to use which.
> I think it is a good rule, I added your sentence to the Wiki page.
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev