Currently, the initial generation of random populations is inefficient and is the bottleneck in overall optimization speed.
Instead of using the regular rand module, use the fastrand module inside of point::random and initialize the ThreadRng instance globally instead of inside the function.
Currently, the initial generation of random populations is inefficient and is the bottleneck in overall optimization speed.
Instead of using the regular
randmodule, use thefastrandmodule inside ofpoint::randomand initialize theThreadRnginstance globally instead of inside the function.