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 <benja...@webkit.org> wrote: > On Sun, Aug 26, 2012 at 10:15 AM, Ojan Vafai <o...@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. > > Benjamin > > _______________________________________________ > webkit-dev mailing list > webkit-dev@lists.webkit.org > http://lists.webkit.org/mailman/listinfo/webkit-dev > _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev