Class PhysicalCoreExecutor

java.lang.Object
io.github.jbellis.jvector.util.PhysicalCoreExecutor

public class PhysicalCoreExecutor extends Object
A fork join pool which is sized to match the number of physical cores on the machine (avoiding hyper-thread count) This is important for heavily vectorized sections of the code since it can easily saturate memory bandwidth.
See Also:
  • Field Details

  • Method Details

    • execute

      public void execute(Runnable run)
    • submit

      public <T> T submit(Supplier<T> run)