Closed shahzadlone closed 5 years ago
Do you need anything from me side for the merge? @CLAassistant
The post-increment and pre-increment will have no performance difference in these cases. Refactor not necessary. See https://isocpp.org/blog/2016/08/quick-q-efficiency-of-postincrement-v.s.-preincrement-in-cpp for reference.
Change all post-increments to pre-increments where necessary to improve performance.
For example consider the following:
The additional copy (temporary) in post-incrementing step is unnecessary.
Also optimized a vector which was not being reserved even though we knew the exact number of elements that were going into it.