You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most existing Ops rely on DefaultChunker when they wish to multithread a process. This process is more complicated to introduce in scijava-ops because:
It requires all ops that want to multithread to require an ExecutorService as a parameter, something that could/should be injectable by the OpService.
The tests for this Op introduce junitbenchmark; it would be nice if we did not have to introduce this.
There are a few different approaches that we can take:
Create some sort of static method that mimics the behavior of Chunk
Would it be possible to create a special mutlithreading OpDependency that, upon discovery, the matcher could inject its ThreadService into? i.e. if you had a
Most existing Ops rely on
DefaultChunkerwhen they wish to multithread a process. This process is more complicated to introduce in scijava-ops because:ExecutorServiceas a parameter, something that could/should be injectable by theOpService.Opintroducejunitbenchmark; it would be nice if we did not have to introduce this.There are a few different approaches that we can take:
ChunkWould it be possible to create a special mutlithreading
OpDependencythat, upon discovery, the matcher could inject itsThreadServiceinto? i.e. if you had aOps could find a
Computerthat takes anExecutorServiceas input and wrap that into aNullaryComputerby injecting itsExecutorService?