32

JS专题之垃圾回收

 5 years ago
source link: https://juejin.im/post/5c5ebc505188256219174f19
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 在讲 JS 的垃圾回收(Garbage Collection)之前,我们回顾上一篇《JS专题之memoization》,memoization 的原理是以参数作为 key,函数结果作为 value, 用对象进行缓存起来,以内存空间换 CPU 执行事件。m

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK