I wondered if anyone could help.
I am trying to replace pyswip with swiplserver/PrologMQI in our project. However, I have performance issues. Swiplserver is at least 25% slower than pyswip in my use case, but often 2-4x times slower.
I have found that some things help, such as batching calls as much as possible. However, even in the simplest case of a single call, swiplserver/PrologMQI is still slower.
Is this issue known? Is there any way to improve the performance or suggested tips? I could not find another mention of it in the forum.
EDIT: I have attached a Python script and a Prolog file that benchmarks the performances. My actual use case is, however, much slower.