optimization for streams as proposed in #498
optimization for streams as proposed in #498


shimib/scala,felixmulder/scala,shimib/scala,jvican/scala,slothspot/scala,lrytz/scala,jvican/scala,felixmulder/scala,scala/scala,felixmulder/scala,scala/scala,shimib/scala,martijnhoekstra/scala,martijnhoekstra/scala,slothspot/scala,felixmulder/scala,shimib/scala,martijnhoekstra/scala,martijnhoekstra/scala,lrytz/scala,shimib/scala,shimib/scala,jvican/scala,lrytz/scala,martijnhoekstra/scala,slothspot/scala,scala/scala,scala/scala,felixmulder/scala,jvican/scala,slothspot/scala,slothspot/scala,scala/scala,felixmulder/scala,jvican/scala,lrytz/scala,martijnhoekstra/scala,lrytz/scala,jvican/scala,felixmulder/scala,jvican/scala,lrytz/scala,slothspot/scala,slothspot/scala,scala/scala