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

optimised code for direct access of keys/array #23

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

Conversation

prabhuvikas
Copy link

I was looping around 5k records using this node and found that the loop was executed slowly and some time crashed nodered because of memory consumption. With deep nodejs inspect analysis I found that much of the time was taken by the RED.util.evaluateNodeProperty function. It actually added too much code to the main stack for getting the value of the field. I changed it to direct access. Please check if this change is suitable for merge.
I further tested this for 10k records & there was no crash this time.

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