-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
A RecordSequence Iterator reuses a single record view to iterate over all its records. It might be interesting to implement an Iterator which creates a new record view every time the next() method is called. With the help of Inlining and Escape Analysis the performance impact could be reduced.
http://docs.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html#escapeAnalysis
Naming:
RecordSequence.iterator() -> slow creating new views
RecordSequence.bufferedIterator() -> reusing one view
This would ensure RecordSequence can be used in existing 3rd party libraries without knowing how they work internally.