On Monday, January 6, 2020 at 12:51:56 PM UTC+11, Emilio Cobos Álvarez wrote:
> If you need UTF-8 inputs from WebIDL (for example if you are passing the 
> input to Rust), chances are you're doing an extra copy from JS.
> 
> In bug 1449861 I've added an UTF8String so that you can convert a 
> JSString to UTF-8 in a single operation, instead of going through UTF-16.

this seems great. Is there a proposal to add this to the WebIDL spec or are we 
just planning to use it as an optimization internally just for us? My worry is 
having to keep IDL from specs and internal in sync (not a big deal, but always 
nice to have a single source of truth). 
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to