CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Perf: IIterator<>, IBindableIterator should use random access if available

Open Scottj1s opened this issue 5 years ago • 0 comments

The IIterable<> and IBindableIterable projections should have special implementations of IIterator IBindableIterator that use random access if available, by probing for IVector<>, IVectorView<>. This would reduce the number of vcalls from two (MoveNext, Current) to one (GetAt) while iterating over a collection.

Scottj1s avatar Apr 23 '20 00:04 Scottj1s