liveBook · Manning

Fast property

As explained in JavaScript in Depth

A V8 object property stored through an optimized layout with hidden-class mapping and direct memory access.

A fast property is a V8 object property stored in an optimized, linear layout. A hidden class maps the property to a direct memory offset, enabling constant-time access. section 5.10.2

The optimization favors predictable object shapes. Dynamic additions, deletions, or excessive shape variation can move an object to slow properties, which use a hash table instead. section 5.10.2

Deletion forces slow properties

Deleting a named property invalidates the layout V8 was tracking and puts the entire object into slow mode. Assigning undefined typically preserves the optimized strategy. section 5.10.2

How JavaScript in Depth covers it

How deep it goes
Describes hidden-class offsets, slow-property fallback, deletion effects, and inline-cache thresholds, but not implementation code.
Examples
Uses a property-load function, shape-varied objects, IC logs, benchmarks, and a %HasFastProperties deletion test.
What you can do after
Diagnose object-property slowdowns with V8 intrinsics, IC states, and shape-count benchmarks, then avoid deletion when appropriate.
How it connects
Connects fast properties with hidden classes, inline caches, polymorphism, megamorphism, and slow properties.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of JavaScript in Depth. The section links point to the parts of the book it draws on.