yuce / pyswip

PySwip is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your Python programs. It features an (incomplete) SWI-Prolog foreign language interface, a utility class that makes it easy querying with Prolog and also a Pythonic interface.
https://pyswip.org
MIT License
472 stars 97 forks source link

Increasing Execution Time with Each Run Using pyswip #166

Open LiuBodan opened 3 months ago

LiuBodan commented 3 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