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

refactor the library to use streams #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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