17 Feb
2016
17 Feb
'16
4:34 p.m.
On 16-02-2016 18:56, Benedek Thaler wrote:
Dear Boost,
What do I miss here?
Hard to say. I guess instruction order may have an impact on the branch prediction. But please include a test with unsafe_push_back() for comparison also. Some more questions: A. is the lambda optimized away? B. Do the test run the same number of times? Is it asserted at runtime? C. Do you compile via bjam? I mean, is all the right flags present, e.g. NDEBUG=1? D. How does the actual code between std::vector and devector compare? Maybe there could be hints to the difference. regards Thorsten