Skip to content

Improve Iterators of RecordSequence #33

@Neiko2002

Description

@Neiko2002

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions