-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack overflow in Models.matchModels #1441
Comments
I haven't looked in detail but generally speaking the solution would be to rewrite as an iterative algorithm. A common way to do that is to introduce an explicit stack (instead of relying on the programming stack). |
I've had huge issues with |
I don't think a performance refactor would be particularly difficult. I'll try and take a stab at it over the weekend. |
Ok so that didn't happen. If anyone else wants to have a go be my guest :) |
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
I've created some benchmarks for us for reference: #1476 All based on files I made or found in other places. The |
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
I found another case of stack overflow. A lot of properties seems to be the trigger. So now we have two stack overflow cases and a bunch of other benchmarks. Here are the results on my ageing macbook pro.
|
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…odel Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…ts SET if possible Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…odel Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…ts SET if possible Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…odel Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…ts SET if possible Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…odel Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…ts SET if possible Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…odel Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…ts SET if possible Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…odel Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
…ts SET if possible Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
Signed-off-by: Håvard Ottestad <hmottestad@gmail.com>
@ArkanEmre this is now fixed and will be released as part of either the next minor or major release (whichever comes first). You can likely try it tomorrow by using 3.0-SNAPSHOT as your version. |
@hmottestad Thank you! |
Hi everyone,
I wanted to compare two RDF Datasets with
Models.isomorphic
function. They both have around 50000 Statements, unfortunately this triggers a stack overflow due to a recursive call in the Models class. Here is the link to the line where the recursive call happens.It is also commented by the developer that it should be fixed. Do you know of any solutions?
Best regards,
Emre
The text was updated successfully, but these errors were encountered: