Consider using dstreams.par.foldLeft instead of dstreams.foldLeft in DynSeqQueueInputDStream.compute(). Using ParSeq is ok here because we don't grant relative order of different test cases. The only problem here is studying how many parallel tests cases we need for this to be an improvement, and how to configure the task support / execution context http://docs.scala-lang.org/overviews/parallel-collections/configuration.html to get the best performance
Consider using dstreams.par.foldLeft instead of dstreams.foldLeft in DynSeqQueueInputDStream.compute(). Using ParSeq is ok here because we don't grant relative order of different test cases. The only problem here is studying how many parallel tests cases we need for this to be an improvement, and how to configure the task support / execution context http://docs.scala-lang.org/overviews/parallel-collections/configuration.html to get the best performance