Ehviewer-Overhauled / Ehviewer

EhViewer overhauled with Material Design 3, Jetpack Compose and more
GNU General Public License v3.0
5.2k stars 234 forks source link

Rewrite parser using memory-safe rust #1139

Open asuka-mio opened 1 year ago

asuka-mio commented 1 year ago

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 commented 1 year ago

And certainly, part of #757