Unflattening has a time complexity of O(d² × n) (where d is the nesting level). Unfolding nesting to iterative descending changes time complexity to O(d × n). Given that we always assume a bounded input Map<String, Object>, we should be able to improve our performance.
Unflattening has a time complexity of
O(d² × n)(wheredis the nesting level). Unfolding nesting to iterative descending changes time complexity toO(d × n). Given that we always assume a bounded inputMap<String, Object>, we should be able to improve our performance.