Ehviewer icon indicating copy to clipboard operation
Ehviewer copied to clipboard

Rewrite parser using memory-safe rust

Open asuka-mio opened this issue 1 year ago • 1 comments

As the first step on way to KMM #577 we will drop Jsoup Things to be discussed: Which html parser to use? https://github.com/y21/tl https://github.com/servo/html5ever Or https://docs.rs/html_parser/latest/html_parser/ ?

About performance At present, the html data obtained through okhttp is in the jvm heap. Parsing it with rust requires a sucking copy But compared to the greater gc pressure brought by jsoup, this may have better performance. Maybe?

asuka-mio avatar Jun 11 '23 17:06 asuka-mio

And certainly, part of #757

asuka-mio avatar Jun 11 '23 17:06 asuka-mio