-
Couldn't load subscription status.
- Fork 638
refactor(byte_array): delegate ByteArray iterator into ByteSpan iterator #8539
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
refactor(byte_array): delegate ByteArray iterator into ByteSpan iterator #8539
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.
@orizi reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @TomerStarkware)
corelib/src/byte_array.cairo line 570 at r1 (raw file):
impl ByteArrayIterator of crate::iter::Iterator<ByteArrayIter> { type Item = u8; #[inline]
no need.
let the system do that.
Code quote:
#[inline]218a5bd to
96b6e7e
Compare
deb73a5 to
dcda500
Compare
96b6e7e to
7e50300
Compare
dcda500 to
6553b56
Compare
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.
@orizi reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @giladchase and @TomerStarkware)
7e50300 to
d32b608
Compare
6553b56 to
79f18d7
Compare
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi and @TomerStarkware)
corelib/src/byte_array.cairo line 570 at r1 (raw file):
Previously, orizi wrote…
no need.
let the system do that.
It doesn't inline it :(
When I remove #[inline] test_into_iterator goes up by ~20K gas
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.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
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.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
79f18d7 to
d4f496d
Compare
7e3b9ef to
727b961
Compare
d4f496d to
3554509
Compare
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.
@orizi reviewed 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
3554509 to
94c3906
Compare
727b961 to
15d5c7d
Compare
94c3906 to
fbc4b9c
Compare
8ae9468 to
def6613
Compare
fbc4b9c to
cf82b89
Compare
9b4cccf to
3e918e0
Compare
5c79087 to
d71857a
Compare
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.
@orizi reviewed 1 of 1 files at r10, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
d71857a to
c79bbee
Compare
5f4028f to
22eb588
Compare
e11d736 to
b66e573
Compare
22eb588 to
3b51301
Compare
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.
@orizi reviewed 1 of 1 files at r11, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
b66e573 to
b74fbe0
Compare
3b51301 to
6c77242
Compare
b74fbe0 to
0eb401e
Compare
6c77242 to
0a4841e
Compare
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.
@orizi reviewed 1 of 1 files at r12, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
0a4841e to
80c1437
Compare
0eb401e to
afeac4a
Compare
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.
@orizi reviewed 1 of 1 files at r13, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
afeac4a to
459d8cb
Compare
80c1437 to
03b3602
Compare
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.
@orizi reviewed 1 of 1 files at r14, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)
Faster than current approach, which uses `at`.
03b3602 to
d3f0247
Compare
Merge activity
|

Faster than current approach, which uses
at.