to-fast-properties

Force V8 to use fast properties for an object


Keywords
object, properties, props, v8, optimize, fast, convert, mode
License
MIT
Install
npm install to-fast-properties@3.0.0

Documentation

to-fast-properties Build Status

Force V8 to use fast properties for an object

Read more.

Use %HasFastProperties(object) and --allow-natives-syntax to check whether an object already has fast properties.

Install

$ npm install to-fast-properties

Usage

const toFastProperties = require('to-fast-properties');

const object = {
	foo: true,
	bar: true
};

delete object.foo;
// `object` now has slow properties

toFastProperties(object);
// `object` now has fast properties

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.