TudbuT / micro_ndarray

Very small multi-dimensional-array implementation
MIT License
1 stars 0 forks source link

Optimize Vec allocation #3

Closed Tnze closed 1 year ago

Tnze commented 1 year ago

By passing in a capacity value, avoid performance degradation caused by multiple expansions during .push().

TudbuT commented 1 year ago

no need to even test this, it's an obvious improvement. thanks!

TudbuT commented 1 year ago

Merged manually due to conflicts.