Re:How We Beat C++ STL Binary Search
by rawnlq on Tuesday August 11, 2015 @07:28PM
(#10045073)
Is there any technical reason why the STL implementation can't include optimized specializations when there are less generic operators it can use?
[ Parent
| on HN ]
No technical reason; just lack of effort! In fact, a well-optimized implementation of the STL should have a large number of machine-word specific optimizations (a la std::vector<bool>). However, none that I know of, do, other than light unrolling to promote vectorization. About the closest you can find is well-optimized versions of valarray.