Skip to content

Commit

Permalink
add comment above with_capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Aug 20, 2024
1 parent 4880a89 commit 5b96605
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/engine/src/object/shape/shared_shape/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ impl SharedShape {
forward_transitions: ForwardTransition::default(),
prototype: None,
property_count: 0,
// Most of the time the root shape initiates with between 1-4 properties.
property_table: PropertyTable::with_capacity(4),
previous: None,
flags: ShapeFlags::default(),
Expand Down

0 comments on commit 5b96605

Please sign in to comment.