On 2014-03-03, 3:19 PM, Boris Zbarsky wrote:
Better yet if we can send this copy with a non-copy move to a Worker
thread.
You could send the string to a worker (if you do this in C++ you won't
even need to copy it, afaict), but then on the worker you have to parse
the HTML... That said, there might be JS implementations of an HTML5
parser out there. There's definitely some tradeoff here for the string
and the parsed representation and all the parsing code, though. :(
There's https://github.com/google/gumbo-parser which can be compiled to js.
Cheers,
Ehsan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform