-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
the dimension is fixed, so we could consider fixing the capacity of the vectors representing sheep:
if you know in advance (at runtime) the number of elements you need, you can use Vec::with_capacity to reserve enough space up front - for large arrays, this essentially makes the malloc cost disappear, as the cost of the actual operation dominates the cost of malloc
Metadata
Metadata
Assignees
Labels
No labels