Files
mostlymatter/server
Agniva De Sarker e09d5690a7 Optimize JSON marshalling in playbooks (#22735)
While inspecting Pyroscope, the function api.ReturnJSON
was seen to take some chunk of the overall memory allocations.

Looking deeper, we can see that the entire object
is json marshalled into bytes, and then wrote to the network.

Instead, we can just do a streaming write to the network
which avoids pre-allocating the entire object.

A similar approach is taken in the server channels codebase
as well.

```release-note
NONE
```
2023-03-30 23:40:36 +05:30
..
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-30 07:38:53 +05:30
2023-03-30 11:02:26 -03:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2023-03-30 11:02:26 -03:00