> Upstream creates the gidgethub routing on each request, which leads to a cascading situation as found via Memray: > > <img width="1270" alt="Screenshot 2025-05-01 at 12 15 09 PM" src="https://github.com/user-attachments/assets/4c24bdf7-dcee-4ca1-ab80-6043017b212c" /> > > This was causing memory consumption to grow out of control until the process was restarted via max_requests or OOM: > > <img width="1091" alt="Screenshot 2025-05-01 at 11 16 10 AM" src="https://github.com/user-attachments/assets/9655122c-a34e-4573-959a-7289c345f096" /> > > Only instantiate the router once, on __init__ should fix it. > > _Originally posted by @ewdurbin in https://github.com/psf/clabot/pull/10_