hivemind icon indicating copy to clipboard operation
hivemind copied to clipboard

bridge_api response size

Open roadscape opened this issue 5 years ago • 0 comments

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 of body)
  • 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

roadscape avatar Sep 24 '19 15:09 roadscape