Closed cvanelteren closed 3 years ago
Wrote some rust code; seems to be even slower for some reason that the cpp code. RNG is faster at lower scale (maybe declaration of ndarray?). Will have a closer look due to semantics being a bit better.
Using CRTP the gap "nearly" disappeared. Cython seems to be (if written correctly) highly optimized both in terms of compiler flags and its implementation.
Using pybind11 c++ runs slower when called from python. Possible reasons
The overhead is slight. Here are some timings.
Model::samplingNodes
Potts::simulate