made new internal package that now contains most of the other packages that shouldn't be part of the public API. This will allow for future versions to leverage java 9+ feature of specifying which packages are accessible by outside the jar.
A few code tweaks for minor performance improvements that speed up the test suite on my laptop by about 2%. Most of the speed improvement was in the Grayscale code. There were lots of computations of statistics and histograms that were never used. I added a new listener interface that by default is a no-op but there's another implementation that does the stats and histograms etc so there is no loss of functionality. There are also a few other minor things when forEaching on Streams or going from streams to collections and back to streams that usually isn't needed either.
This pull request changes a few things:
made new
internal
package that now contains most of the other packages that shouldn't be part of the public API. This will allow for future versions to leverage java 9+ feature of specifying which packages are accessible by outside the jar.A few code tweaks for minor performance improvements that speed up the test suite on my laptop by about 2%. Most of the speed improvement was in the
Grayscale
code. There were lots of computations of statistics and histograms that were never used. I added a new listener interface that by default is a no-op but there's another implementation that does the stats and histograms etc so there is no loss of functionality. There are also a few other minor things when forEaching on Streams or going from streams to collections and back to streams that usually isn't needed either.