hivemind
hivemind copied to clipboard
bridge_api response size
Check common calls and their response sizes. Identify if there are any low-impact methods to make responses smaller in size.
Currently, /trending
is approx 1,150,961 bytes:
- 74% votes
- 19% body
- 5% json
Potential changes:
- post lists to truncate body (serve
preview
instead ofbody
) - truncate active_votes down to 5 if no observer
- do not serve json_metadata unless root comment in thread
- do not serve
root_title
, etc unless root comment in thread