Skip to content

Optimize SAXStream #1140

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 5 commits into from
Mar 30, 2020
Merged

Optimize SAXStream #1140

merged 5 commits into from
Mar 30, 2020

Conversation

alubbe
Copy link
Member

@alubbe alubbe commented Feb 21, 2020

This PR brings over improvements and speed-ups from #1135 that work on nodejs v8. It will help make the diff of the other PR smaller

@alubbe
Copy link
Member Author

alubbe commented Mar 6, 2020

Could we try to review/merge this PR? If anything here is unclear, is there anything I can improve?

@Siemienik
Copy link
Member

@alubbe I'm going to review when I will have some time

Copy link
Member

@Siemienik Siemienik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, it looks ok :) I have only one quite simple note here.

Let's take me a minute before merging to test it with my lib xlsx-renderer. There it has some testes which should additionally check if reader and writer work 100% correctly.

super();
this.sax = new saxes.SaxesParser();
module.exports = class SAXStream extends Stream.Transform {
constructor(eventTypes) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that eventTypes everywhere has the same value, as sax-stream.js is an internal utility I think you should use default value here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - fixed in #1135

@Siemienik
Copy link
Member

image
perfect! 😄

@Siemienik Siemienik merged commit f6b345d into exceljs:master Mar 30, 2020
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