High CPU usage with large object merge
samuraitruong opened this issue · 1 comments
samuraitruong commented
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 commented
I'd recommend my package deepmerge-ts or alternaitvely object-accumulator.
Both are a lot more performant.