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

Using cache for load function #51

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yuto-yuto
Copy link

I use this module to write flow test as well. However, It takes long time to complete redNodes.startFlows in helper.load function when a flow file is big.
I created a big flow.json in this PR and it takes about 300 ms for load function for each test. If there are 100 test cases for the flow it takes 30 seconds.
However, most test cases can use exactly the same setting and they don't have to call load function again. Therefore, I introduced cache.
I applied this changes to my project that has about 10 flow files and existing tests works without any change.
I want to merge this change if it still follow the concept of this module.

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.

None yet

1 participant