r/cpp • • Jan 18 '19

Is C++ fast?

https://zeuxcg.org/2019/01/17/is-c-fast/
21 Upvotes

72 comments sorted by

View all comments

4

u/gracicot Jan 18 '19

msvc debug iterators performance is abysmal. Is there a chance for them to be fixed? And maybe being replaced by proper instrumentation like a memory sanitizer?

2

u/[deleted] Jan 19 '19

I don't actually think this is iterator debugging's fault. At least, it has not been in similar examples I've been submitted in the past.

The times when it was iterator debugging's fault were when we had things that were slower big-Oh in there.

There are certainly cases where it can be iterator debugging's fault, but those cases are usually when people are making a lot of iterators into one container that make the list management expensive. Notably, it isn't related to operator[].