-
Notifications
You must be signed in to change notification settings - Fork 581
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
drt: Contiguous GC data #6016
base: master
Are you sure you want to change the base?
drt: Contiguous GC data #6016
Conversation
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.
clang-tidy made some suggestions
@osamahammad21 Have you had a chance to look at this? |
Please cleanup the clang-tidy warnings |
clang-tidy review says "All clean, LGTM! 👍" |
I am still looking into the PR but I don't understand the need for the dynarray class. Is it just a container for the std::vector? Why is it better than just using std::vector directly? |
I have concerns about the |
I should've outline some of this in the description, apologies. The whole point of As for a longer term motive, this is a change to the structure of a small subset of the data that DRT operates on. One could apply similar changes to the rest of the data, and stack these speedups. I get that you use polymorphism and you like it, but I encourage you to reconsider using it everywhere. It's dynamic in some ways, but static and constraining in others. Not to mention it requires pointer chasing and fragmented memory access. Can you point out what problems it solves for you? I also fail to see how arrays of pointers are more intuitive than just arrays. |
Signed-off-by: Krzysztof Bieganski <[email protected]>
Signed-off-by: Krzysztof Bieganski <[email protected]>
Signed-off-by: Krzysztof Bieganski <[email protected]>
Signed-off-by: Krzysztof Bieganski <[email protected]>
db2ef38
to
a2a6d8d
Compare
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Krzysztof Bieganski <[email protected]>
Resizing these arrays could lead to dangling pointers and hard to find bugs. Signed-off-by: Krzysztof Bieganski <[email protected]>
Signed-off-by: Krzysztof Bieganski <[email protected]>
a2a6d8d
to
78e43ba
Compare
clang-tidy review says "All clean, LGTM! 👍" |
Store some of the GC data in contiguous arrays. The last commit is to ensure no one pushes to these vectors, as other code references this data via pointers, so we cannot invalidate them.
asap7/aes
drt-contiguous-gc
asap7/ibex
drt-contiguous-gc