标签: 内存优化
5 个内容
笔记(4)
JavaScript构造函数既是函数又是对象创建模板,需用`new`调用。`new`创建对象、绑定上下文、初始化属性并处理返回值。原型链实现继承,引擎优化属性查找。`new.target`检测实例化方式,避免内存泄漏。类是语法糖,私有字段是新提案。构造函数在框架和库中有广泛应用。
Elliot Yang·
140 浏览
动态(1)
E
Elliot Yang
公开
A Bloom filter is a data structure designed to tell you, rapidly and memory-efficiently, whether an element is present in a set.
The price paid for this efficiency is that a Bloom filter is a probabilistic data structure: it tells us that the element either definitely is not in the set or may be in the set.
浏览:139点赞:0