View is great for iterables, but not necessary for iterators
On 23 Feb 2013 13:33, "Michael Hunger" <notifications@github.com> wrote:

> In
> community/cypher/src/main/scala/org/neo4j/cypher/internal/profiler/Profiler.scala:
>
> >
> > -    private def countItems(in: Iterable[T]): Iterable[T] = in.view.map {
> > +    private def countItems(in: Iterator[T]): Iterator[T] = in.map {
>
> Sensible to remove view here? I thought streams are cool b/c the aggregate
> multiple operations on one internal step.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/neo4j/neo4j/pull/553/files#r3126578>.
>
>