Skip to content
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

ontology: removes RefCells from indexes. #127

Merged

Conversation

filippodebortoli
Copy link
Collaborator

Addresses #126.

It is now possible to wrap ArcIRIMappedOntology using OnceLock, Mutex etc.
Additionally, this change removes some unsafe code that was needed to access the BTreeMap that was wrapped in a RefCell.

I added test_once_lock_ontology() to mimic the behavior showed by @KonradHoeffner in #126, which now passes.

@phillord
Copy link
Owner

Looks good to me. Both simpler and more functional!

Guess I had not discovered the Entry api when I wrote this. That unsafe code always irritated me, but I couldn't see a way around. I will be happy to see it gone.

@filippodebortoli filippodebortoli merged commit b2fb0a9 into phillord:devel Feb 20, 2025
1 check passed
@filippodebortoli filippodebortoli deleted the fixes/no-refcells-indexes branch February 20, 2025 11:02
@filippodebortoli
Copy link
Collaborator Author

@phillord merged. Should we release a minor version to account for this fix?

@KonradHoeffner
Copy link
Contributor

KonradHoeffner commented Feb 20, 2025

Wow, thank you for the super fast accommodation of our requirements, this is much appreciated!
A minor version release would be perfect on our end.
I hope this doesn't break existing code for other users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants