Clean up code handling both std::vector and SmallVector#2493
Clean up code handling both std::vector and SmallVector#2493zcbenz merged 1 commit intoml-explore:mainfrom
Conversation
Can you elaborate on that? Where do we not get perf gain / where are we using |
awni
left a comment
There was a problem hiding this comment.
Looks good. I'm slightly confused as to the purpose .. but feel free to merge the cleanup as it seems useful regardless.
I made some experiments replacing more
and none gave signs of performance gain or regression. Intuitively I think it is because when a Currently all shape/strides are using |
|
Makes sense, thanks for the explanation! |
Using
SmallVectordoes not always have performance gain overstd::vectorin all cases so we are having code handling bothstd::vectorandSmallVector, this PR adds ais_vectortype trait to make the code easier to maintain.