On Wed, Apr 2, 2014 at 10:45 AM, Luke Wagner <l...@mozilla.com> wrote:

> Nick just brought up the topic of adding a second compact string
> representation to the JS engine (motivated by string memory use).  One
> question was whether to use ASCII (which V8 does, iirc) or UTF8.  Several
> DOM people have pointed out over the years that if SM would accept UTF8
> it'd be really good for Gecko, so I was leaning toward UTF8 but hoping for
> some measurement of how much it'd win over ASCII to back this up.  Sounds
> like UTF8 would serve Servo well too.
>

I think the biggest win for using a UTF8-alike is that it lets you write a
single code path that's optimal for ASCII but also handles everything else.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to