1
General / Re: Random access iteration benchmark
« on: January 03, 2013, 01:42:11 am »
I really felt I should log in just because I had a similar kind of optimisation concern just today!
Would you mind trying to ad another random access test using the ::at() member function on both containers?
My bet is that this is where the difference lies... since .at() and [] operator have different rules for bounds checking on different containers.
Hope my thinking is communicated and I would appreciate it if any1 could try this (I wish I could but I am hard pressed at this point..sorry).
Would you mind trying to ad another random access test using the ::at() member function on both containers?
My bet is that this is where the difference lies... since .at() and [] operator have different rules for bounds checking on different containers.
Hope my thinking is communicated and I would appreciate it if any1 could try this (I wish I could but I am hard pressed at this point..sorry).