Ticket #34746 - Use reprlib instead of pprint to avoid CPU/memory spikes in the event of a 5xx exception

I just replied in this thread where another developer, @keerthivasansa , is also planning on working on the ticket: Usage of reprlib instead of pprint in exception reporting . Perhaps you can coordinate and join forces to work on this ticket?