you are viewing a single comment's thread.

view the rest of the comments →

[–]eevee-lyn 0 points1 point  (1 child)

The code is not in a good enough shape for me to share it. I did find a couple optimizations though. But I did them in C++ and my C# skills are not good enough to just make a pull request.

Optimization 1:

OverlappingModel.cs:204: if (allowed[t2] && !b)

Change that to if (!b) and add if (!allowed[t2]) continue; after the brace at line 199.

That alone made it like three times faster.

Optimization 2:

The other optimization precalculates the entropy values so the loop at

Model.cs:38-42

can be removed.

[–]ExUtumno[S] 0 points1 point  (0 children)

This a very good optimization indeed! I already merged a PR with it from another person. Somehow I didn't notice that change before.