Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Nokogiri to Selma #368

Merged
merged 2 commits into from
Dec 24, 2022
Merged

Migrate from Nokogiri to Selma #368

merged 2 commits into from
Dec 24, 2022

Conversation

gjtorikian
Copy link
Owner

This completes one of the blocking items for a v3 release: migrating to Selma. Selma's process for parsing html uses lol-html, a Rust library, as its underlying mechanism. It operates purely on CSS selectors, and has a few advantages over the current Nokogiri based mechanism. Namely, in the current systen, text is parsed over multiple times. Each NodeFilter runs its set of CSS selectors synchronously. lol-html, on the other hand, parses the text once, compiles its CSS selectors, and more efficiently allows for text manipulation.

@gjtorikian gjtorikian added the v3 label Dec 24, 2022
@gjtorikian gjtorikian self-assigned this Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant