summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorNan Zhou <nanzhoumails@gmail.com>2022-08-16 03:44:20 +0300
committerEd Tanous <edtanous@google.com>2023-06-21 20:08:20 +0300
commit8a7c4b475469c8811dffe265992b903060aad65f (patch)
treed8b8bd3ba1c3129cc8232abd92c139a7d2586c9d /meson_options.txt
parent6fde5971ff53f43ece1aa3977b0689390934b06e (diff)
downloadbmcweb-8a7c4b475469c8811dffe265992b903060aad65f.tar.xz
json utils: add getEstimatedJsonSize
Add a utility function which estimates the size of the JSON tree. It is used in the children change to limit the reponse size of expand query. Tested: 1. unit test passed; 2. tested on hardware, the following are real sizes and estimation ``` Real payload size, Estimation, query 15.69 KB, 10.21 KB, redfish/v1?$expand=.($levels=1) 95.76 KB, 62.11 KB, redfish/v1?$expand=.($levels=2) 117.14 KB, 72.71 KB, redfish/v1?$expand=.($levels=3) 127.65 KB, 77.64 KB, redfish/v1?$expand=.($levels=4) ``` Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: Iae26d6732a6ec63ecc59eacf657b4bf33c07c046
Diffstat (limited to 'meson_options.txt')
0 files changed, 0 insertions, 0 deletions