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

High CPU usage with large object merge #237

Open
samuraitruong opened this issue Aug 9, 2021 · 1 comment
Open

High CPU usage with large object merge #237

samuraitruong opened this issue Aug 9, 2021 · 1 comment

Comments

@samuraitruong
Copy link

Currently, I need to merge 8 JSON files which about 30-50MB each file, the file include an object with multiple nested arrays

I can see during the merge it uses lots of CPU, it works fine on local computer but I the code running in the dockerize just as ECS/EKS, the container will get killed when the CPU hit 100%. Is their any document/guideline for large object merge?

@RebeccaStevens
Copy link

I'd recommend my package deepmerge-ts or alternaitvely object-accumulator.

Both are a lot more performant.

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

No branches or pull requests

2 participants