browser refresh does not do garbage collection

后端 未结 1 1260
暖寄归人
暖寄归人 2021-02-14 14:47

I have found this on all browsers tested - IE, Firefox, Chrome and Safari on Window sand Safari on Apple.

Allegedly, a browser refresh, back button or forward link shoul

相关标签:
1条回答
  • 2021-02-14 14:56

    One of the points with garbage collection is that the objects are not cleaned up immediately they get unused. The garbage collector can determine for iteself when it's most convenient to do collections.

    It's normal for a garbage collected system to leave some unused objects in the heap, as long as there is plenty of memory to use. A computer doesn't run any faster from having a lot of unused memory.

    0 讨论(0)
提交回复
热议问题