-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/05/2014 08:27 PM, Cameron Zwarich wrote:
> If JS can’t handle WTF-8 natively, then what’s the benefit of
> using it? I am opposed to anything that requires string copies
> between the DOM and JS, unless there’s some really great overriding
> reason.
> 

The benefit is correctness while not paying the memory cost of 16-bit
strings.

Another benefit is not having to copy strings coming from the parser,
or going into any Rust library that's not entirely Servo-specific.

Not requiring string copies between JS and the DOM would be nice, but
sadly not feasible, regardless of encoding, due to SpiderMonkey's
moving GC. Gecko

HTH
Ms2ger
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJUMbKWAAoJEOXgvIL+s8n256kH/RHGswcMf5i0I1xJgC6d/CTo
UGOYF5u7Tcq38x+sxCDh2SrUAPERMFYq4uP6axYy/9fexspegt/OCVsLvOSxI3jr
mADnTEO2PJlSuiQ3g4IrPT1pvNWo/HzPyGtJ6YjdQFG4+ksRQNzdyadi8VsR1bv9
4a5LCUKFXyaFTCau5IKfYvZOZkfLg7ja+UAS+lERcop5wRK5HWIqxYzPZLZhjKwf
/iwqF+AMSt6o8CN7eb3sgQHAdq8mm7wfNzEi6TGFKCh9ZLAb773J7HoiqpKN69rA
KXDKJvWUqGV0JxNRXVXofCNye46ncUyiIS5+HXciw9DJmfTXCAOqkrqOT/36IX8=
=e5/I
-----END PGP SIGNATURE-----
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to