Boost logo

Boost :

Subject: [boost] [ublas] slice iterators are indexed iterators
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2008-10-19 20:44:22


It seems that basic_slice iterators are indexed, they store an integral index and dereference looks like:
                return (*this) ().start () + it_* (*this) ().stride ();
 
This seems to kill performance. Is there any good reason why slice iterators could not be based on pointers? If it were, the most common use, which would iterate using 'it++' should be faster.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk