Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Rewrite parser using memory-safe rust #1139

Open
asuka-mio opened this issue Jun 11, 2023 · 1 comment
Open

Rewrite parser using memory-safe rust #1139

asuka-mio opened this issue Jun 11, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@asuka-mio
Copy link
Member

asuka-mio commented Jun 11, 2023

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 asuka-mio added the enhancement New feature or request label Jun 11, 2023
@asuka-mio asuka-mio added this to the 1.9.0.0 milestone Jun 11, 2023
@asuka-mio asuka-mio self-assigned this Jun 11, 2023
@asuka-mio
Copy link
Member Author

And certainly, part of #757

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant