-
Notifications
You must be signed in to change notification settings - Fork 13
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
A more robust solution might be to add a lifetime directly to ScipPtr
. So have OwnedScip
and ScipRef<'a>
instead of the consumed
field.
#151
Comments
Oh, was not expecting the pull request to be merged without sparking any discussion. I am a bit busy currently to implement this , but maybe, just to get an idea of the scope, I have a few questions:
|
Yes your understanding is correct.
I don't mind removing it at all, as long as access to the SICP model is still allowed from plugins (callbacks). Sorry for the late reply and thank you so much for your efforts! |
@Andful what do you think about wrapping up |
That seems like a much easier solution. Was contemplating that. I have to think about it a bit. We can defer freeing to be done by |
I have started implementing this on the branch
I assume you mean in the Model states not the solution, it's to avoid creating structs for variables and constraints every time the user queries them. But now I'm actually rethinking this I think the rust compiler could optimize that away, and would remove this internal state that needs to be kept up to date. Anyhow, that's a separate issue. |
I cannot see the branch. But feel free to ping me if you make a pull request. I was asking about Regarding |
Sorry I forgot to push my changes :) I opened a draft PR with it #155.
I think I want it to be Send in the future, I just need to think what invariants need to hold for this to be safe. |
Update: First step in this was done in #155 |
Originally posted by @Andful in #149 (comment)
The text was updated successfully, but these errors were encountered: