Skip to content

[WIP] Replace sax with saxes #1127

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

Merged
merged 8 commits into from
Feb 20, 2020
Merged

[WIP] Replace sax with saxes #1127

merged 8 commits into from
Feb 20, 2020

Conversation

alubbe
Copy link
Member

@alubbe alubbe commented Feb 13, 2020

THIS PR IS NOT READY TO BE MERGED - IT IS A PoC

As mentioned last year (#748 (comment)), I believe we should consider replacing sax with saxes. Here are my main motivating reasons:

  1. sax has not been maitained in close to 3 years
  2. saxes uses ES6 and modern streams, which should enable us to use async iterators, which a) massively simplifies the code responsible for the stream control logic and b) handles backpressure for us, which could mean we might be able to drop our custom flow control implementation
  3. saxes is faster than sax

This PR is a work in progress right now and cannot be merged until saxes v5 is officially released. It also requires that we replace uglify with terser to handle the ES6 code that saxes publishes.

Looking forward to your feedback!

@alubbe
Copy link
Member Author

alubbe commented Feb 13, 2020

This PR had to do a number of things, so I've spun out 3 separate PRs out of it. Once they are merged, the diff of this PR will be smaller and easier to read.

#1125
#1126
#1124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy