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

Comments

refactor the library to use streams#24

Open
jewell-lgtm wants to merge 1 commit intowebschik:masterfrom
jewell-lgtm:streams
Open

refactor the library to use streams#24
jewell-lgtm wants to merge 1 commit intowebschik:masterfrom
jewell-lgtm:streams

Conversation

@jewell-lgtm
Copy link

The promised based API was actually a blocking API in disguise, and we have had some performance issues using this library in production on some larger mt940 files.

This PR removes the Promise API and replaces it with a streams based API, which allows us to process a statement at a time. The previously Promised based api is now synchronous, as the parser would block the event loop anyway, and in my performance tests this was actually quicker.

I'd be happy to hear your feedback on this, and thanks for all the great work that has gone into v1.0.0 of this library!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant