olragon

The Garden

Showing 1 of 14 notes.

Not sure where to start? Follow a trail →

  • Why doesn't RAM go down after I collect the garbage? 🌱 seedling · EN · VI
    A server held nearly 2 GB, and its biggest culprit held nothing: one index build left about 1 GB behind. Bun.gc plus Bun.shrink afterwards gave back 7 MB. I measured it again on 277 thousand real lines: collecting after the build leaves 1,110 MB, collecting during it leaves 699 MB, at the price of about 1 second. In a clean process the gap is only 20 MB, so measuring one holder at a time never shows it.