-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue8 #16
Issue8 #16
Conversation
feat: release 0.2.1
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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.
Okay, I've done some research and we're going to set one rule:
__gap
s must be of size 32 * n
. You don't need to worry about it because it's already what we're doing.
Just a note to self that we may want to throw an error if that isn't the case.
- We'll need
problematicOnlyBecauseOfGap
function:
IN: item from new layout, old layout
OUT: whether item from new layout overlaps only with gap from old layout
The function just needs to iterate over the items from the old layout, and using the current item's start
and end
, check if there's an overlap with the provided item from the new layout (by comparing to its start
and end
).
If there's an overlap, return false
if the current item is not a __gap
.
If it is a __gap
, just continue.
Return true
at the end, i.e., if we don't find an overlap with an item from the old layout that is not a __gap
.
This should be straightforward to do.
Let's start from there - by adding this function. I'll continue to debug the code in the meantime.
Let me know if you think this is a good idea.
This is the same as |
It's another, separate function.
Here's an example:
Let's say that we change the type of
If you think about it, We'll need a function to check for that, and that's why we're adding it. Let me know if that makes sense. |
I think it's probably good if you take it on from here, because you will have to explain each and everything and it will consume your much of time so maybe I'll close this PR and let you do your job. What do you think? |
Whatever you prefer. I have something else to work on, so I won't get back to Storage Delta this week. Totally fine if you want or not want to give it a shot in the meantime. |
Okay @ZeroEkkusu! Btw it was great doing discussion with you on this and I definitely learned a lot! Thanks! Closing this PR. |
Thank you, |
Description
Draft PR for #8
Additional context
I have added some initial logic to support __gap storage gaps variable.