Feature #317
Make RangeIterator use array pointer functions
Status: | Resolved | Start date: | 2008-02-18 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
Category: | - | |||
Target version: | - | Estimated time: | 1.00 hour |
Description
RangeIterator should use PHP's native array pointer functions if possible, as this could be faster and would eliminate the need to have a continous numerically indexed array containing the iterators elements. This again would allow to remove the array_values() call in the constructor, which could become a real memory-hog if used with a lot of data.
Associated revisions
RangeIterator now uses PHP's native array traversal functions. This should resolve a potential memory usage issue caused by a necessary array_values call in the RangeIterator constructor. Resolves #317.