-
Notifications
You must be signed in to change notification settings - Fork 1
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
GSW-1838 refactor: use avl.Tree in pool #430
base: main
Are you sure you want to change the base?
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.
👍
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.
The base code of the current pr is too old; the application of avl.Tree should be applied from the modernized pool code. Needs to be updated
pool/tick_bitmap.gno
Outdated
|
||
bitmap, exist := pool.tickBitmaps.Get(wordPosStr) | ||
if !exist { | ||
pool.tickBitmaps.Set(wordPosStr, u256.Zero()) |
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.
Extract initialize function
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.
var bitPosAdjust uint | ||
if lte { | ||
bitPosAdjust = 1 | ||
} |
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.
@r3v4s
If lte is false, explicitly set 0 to bitPosAdjust
The semantics of bitOffset seems more appropriate than bitPosAdjust.
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.
adec74f
to
bf8e09d
Compare
a926b6c
to
71190c0
Compare
Quality Gate passedIssues Measures |
refactor
avl.Tree
instead ofmap
map
has issue with processing pointer value as key