On Tue, Oct 7, 2014 at 6:57 AM, Henri Sivonen <hsivo...@hsivonen.fi> wrote:

> On Mon, Oct 6, 2014 at 8:27 PM, Cameron Zwarich <zwar...@mozilla.com>
> wrote:
> >> So you’re suggesting Servo could get away with UTF-8 in the DOM? I
> hadn’t considered it. I remove my proposal at the start of this thread, I’d
> like us to try this instead.
> >
> > UTF-8 strings will mean that we will have to copy all non-7-bit ASCII
> strings between the DOM and JS.
>
> Not if JS stores strings as WTF-8. I think it would be tragic not to
> bother to try to make the JS engine use WTF-8 when having the
> opportunity to fix things and thereby miss the opportunity to use
> UTF-8 in the DOM in Servo. UTF-16 is such a mistake.
>

I agree. There's an opportunity here to improve speed and memory usage
while simplifying the overall engine design by having the whole engine use
*TF-8 except for JS. We believe we can fix JS performance with a bounded
amount of work, and we don't even have to do that work up-front since
copying strings between JS and DOM is a viable solution for now.

Rob
-- 
oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo
owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo
osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo
owohooo
osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o o‘oRoaocoao,o’o
oioso
oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo
owohooo
osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro
ooofo
otohoeo ofoioroeo ooofo ohoeololo.
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to