‹ BackHN Continuity

Thread

A 40ms Go garbage collector pause caused by swap

94 points · 92 comments · shellpipe

  1. raverbashing · · focus · HN ↗
    I don't get why people do not prefer reference counting, it has more predictable runtime performance

    (though of course a swap is a swap - but you can "trigger" it depending on your memory or file access pattern)

    1. xxs · · focus · HN ↗
      ref counting is expensive in multi-threaded applications. Overall it would have worse performance. When it comes to predictability: deallocating a linked list (for instance) would have to deallocate all of the elements. Dealing with loops is also not simple, either.
      1. raverbashing · · focus · HN ↗
        Honestly some (container) objects makes me think that they should be "parent obj management only"
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.