yuce / pyswip

PySwip is a Python-Prolog interface that enables querying SWI-Prolog in your Python programs.
https://pyswip.org
MIT License
482 stars 98 forks source link

Increasing Execution Time with Each Run Using pyswip #166

Open LiuBodan opened 4 months ago

LiuBodan commented 4 months ago

Hi, I am experiencing a significant increase in execution time when running my code with the pyswip library. As shown in the attached screenshot, the time taken for my code to execute nearly doubles each time I run the loop. This issue is only present when using a specific Prolog file (wild.pl), and it works fine with other Prolog files (add.pl).

image wild_please_change_to_pl_file.txt.txt

Many thanks, Bodan

deRemo commented 1 week ago

@LiuBodan

I would suggest you to copy-paste your code here so that someone could help you by reproducing your example