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

IO-104076 | fix max call stack error #3

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

sandeepkumarcel
Copy link
Collaborator

@sandeepkumarcel sandeepkumarcel commented Nov 20, 2024

    -- records.push(...recordBatch.records)
    ++ for(let i = 0; i < recordBatch.records.length; i++) {
      records.push(recordBatch.records[i])
    }
    
    a large records  size (> 125k) causes the spread operator to use all of the stack and cause max call stack size error, converting it to regular for loop for better performace

ci check passed in original repo: tulios#1723

@sandeepkumarcel sandeepkumarcel merged commit f68b973 into celigo:master Dec 3, 2024
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