-
Notifications
You must be signed in to change notification settings - Fork 152
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
Rewrite Views
to be Miri compatible
#588
Conversation
✅ Deploy Preview for salsa-rs canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave this a quick look and it seems reasonable. I know I considered this approach and decided against it; I'm trying to remember why. I'll look it over more closely later today.
CodSpeed Performance ReportMerging #588 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read it over again. I like it! Nice work.
I'd merge this but clippy is grouchy. |
I'll fix the clippy issue and merge the PR afterward. |
Rewrite the
Views
type to use a manual VTable instead of fat pointer manipulation. I find this pattern to be much clearer than the existing code.The current implementation is also aliasing
Box
through theOpaqueBoxDyn
andBox<dyn Free>
pointers, which is dubious, although Miri seemed to be pleased with the small diff: