Open
Description
I think the entire JSON tree is being re-rendered every time one item is toggled. This does not scale well for large JSONs.
Additionally, the component struggles to display a JSON of size ~21MB 🙁
One thing I did notice was that most of the time is being spent in jsonFlatten
and/or flatData
computation. Is there anything we can do to improve both of these? Given that jsonFlatten
is not touching the DOM in any way, can we parallelize the work using WebWorkers? I'm happy to work on implementing it, but I don't fully understand the codebase yet.
Branch: 1.x