-
Notifications
You must be signed in to change notification settings - Fork 195
Description
What is the expected enhancement?
Add a call_limit parameter to the vf2_mappings API
Background
Hey all, we have been using the vf2_mappings call more extensively lately and wanted to propose an improvement to the API. Currently the only way to limit the time that it takes for the vf2_mappings call to return results is via call_limit. However call_limit is hard to tune because
- Its magnitude might depend on the input graphs
- From the user's of the api is hard to predict how long the call is going to take.
- It requires deeper knowledge of the vf2 algorithm to find a good limit.
What we would like to propose is the time_limit parameter. Which would limit the execution of the call up to a certain duration.
This is currently hard to implement outside of the rust API, because the call retains the GIL until the next mapping is found. The only option available is fork a new process and forcefully kill it after some time. Perhaps I am missing something here?
Hoping to hear your thoughts on this.