-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Preallocation of maps can be useful, as shown by PR #23, would be nice to have prealloc suggest that too.
Just wondering how smart it can be made as things are not as straightforward as with slices because there's key uniqueness at play. Cases where the optimal preallocated capacity can be easily determined beforehand are more rare with maps, and in that sense suggesting it could have a worse signal to noise ratio. Maybe it should be made optional if it can't be made "smart enough" 🤔
thevilledev
Metadata
Metadata
Assignees
Labels
No labels