当前位置:网站首页>JS garbage collection
JS garbage collection
2022-06-23 15:11:00 【Liujiayi_】
Garbage collection (GC)
- It's just like garbage will be produced when people live for a long time , Garbage will also be generated in the process of program running
After accumulating too much rubbish , Will cause the program to run too slow ,
So we need a recycling mechanism , To deal with garbage generated during program operation
- When an object does not have any variables or attributes to refer to it , At this point we will never be able to manipulate the object ,
At this time, the object is a garbage , Too many of these objects will take up a lot of memory space , Causes the program to run slowly , So this kind of garbage has to be cleaned .
- stay JS There is an automatic garbage collection mechanism in , Will automatically destroy these garbage objects from memory ,
We don't need or can't do garbage collection
- All we need to do is set objects that are no longer used null that will do 
such js Will recycle the garbage (NULL It means we don't need it anymore )
边栏推荐
猜你喜欢

山东:美食“隐藏款”,消费“扫地僧”

Introduction to helm basics helm introduction and installation
详解Redis分布式锁的原理与实现

2021-06-07

【opencv450】椒盐噪声demo
![[Level 2 warranty] which brand of Fortress machine is good for Level 2 warranty?](/img/84/4fa07c54786aaf423ca333ecde62f4.png)
[Level 2 warranty] which brand of Fortress machine is good for Level 2 warranty?

百萬獎金等你來拿,首届中國元宇宙創新應用大賽聯合創業黑馬火熱招募中!

港股今年最大IPO来了,660亿身家,坐在矿山上的“大王”

2021-05-22

Illustration of ONEFLOW's learning rate adjustment strategy
随机推荐
AXI_Round_Robin_Arbiter 设计 - AW、W通道部分
Redis缓存三大异常的处理方案梳理总结
港股今年最大IPO来了,660亿身家,坐在矿山上的“大王”
Babbitt | metauniverse daily must read: meta, Microsoft and other technology giants set up the metauniverse Standards Forum. Huawei and Alibaba joined. NVIDIA executives said that they welcomed partic
掌舵9年,艾伦研究所创始CEO光荣退休!他曾预言中国AI将领跑世界
[deeply understand tcapulusdb technology] tcapulusdb import data
Summary of operating system underlying knowledge (interview)
JS中的pop()元素
去 OPPO 面试, 被问麻了。。。
[Level 2 warranty] which brand of Fortress machine is good for Level 2 warranty?
Volatile~ variables are not visible under multithreading
JS垃圾回收
php 二维数组插入
Use of pyqt5 tool box
百万奖金等你来拿,首届中国元宇宙创新应用大赛联合创业黑马火热招募中!
The work and development steps that must be done in the early stage of the development of the source code of the live broadcasting room
SQL injection vulnerability (principle)
MySQL create and manage tables
When I went to oppo for an interview, I got numb...
Error creating bean with name xxx Factory method ‘sqlSessionFactory‘ threw exception; nested excepti