Replies: 2 comments 12 replies
-
You can use :- non_counted_backtracking(foo/1). It isn't extensively documented, but commonly used in sources. #2534 |
Beta Was this translation helpful? Give feedback.
1 reply
-
When I really have to understand why performance is bad, I just step through the code (in SWI usually) and observe the execution pattern, and from that I do my conclusions on how to optimize it. I'm not aware of any better and practical way, and I would glad to hear it from others too. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The simulation experiment reported in the paper mentioned in #2995 runs so slowly that I would even consider porting some of it into new Rust builtins if necessary. But first, I would like to gain some global impression of where the time is being spent. (I'd like if possible to do 10,000 replications for v2 of the paper, instead of the paltry 1,000 of v1!)
What are you all doing these days, when you need to profile a Prolog program?
Beta Was this translation helpful? Give feedback.
All reactions