beer-garden / react-ui

Frontend for beer-garden built on React
MIT License
1 stars 8 forks source link

Larger JSON results perform poorly #428

Closed west270 closed 1 year ago

west270 commented 1 year ago

Closes #396

Changed the library used to display json data to use react-json-view-lite which has a better loading time than the library it is replacing. The component will auto collapse the values if the json data is above 700 kb to load the page faster.

For testing run a command with output_type = "JSON" that returns a large json value. The command echo_message_huge_json should be large enough to see the load time improvement but is not large enough to trigger the auto collapse.