-
Notifications
You must be signed in to change notification settings - Fork 113
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
Row Data Stored On The Heap #1009
Conversation
a8d6aa5
to
f15bfa5
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1009 +/- ##
==========================================
- Coverage 92.88% 92.86% -0.02%
==========================================
Files 105 105
Lines 14242 14259 +17
Branches 14242 14259 +17
==========================================
+ Hits 13228 13241 +13
- Misses 934 938 +4
Partials 80 80 ☔ View full report in Codecov by Sentry. |
62ffbd0
to
c30b611
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: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @ohad-starkware)
a discussion (no related file):
Can we check if this causes degradation in the performance?
c30b611
to
b19b00c
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: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @andrewmilson, @ohad-starkware, and @shaharsamocha7)
a discussion (no related file):
Previously, shaharsamocha7 wrote…
Can we check if this causes degradation in the performance?
Changed to vector so now compile time is back to normal
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.
Reviewed 1 of 3 files at r2, all commit messages.
Reviewable status: 1 of 3 files reviewed, 2 unresolved discussions (waiting on @ohad-starkware and @shaharsamocha7)
crates/air_utils/src/trace/row_iterator.rs
line 35 at r2 (raw file):
.v .iter_mut() .map(|i| unsafe {
This is no longer an index. It's a chunk of a column
Suggestion:
col_chunk
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: 1 of 3 files reviewed, 4 unresolved discussions (waiting on @Gali-StarkWare, @ohad-starkware, and @shaharsamocha7)
crates/air_utils/src/trace/row_iterator.rs
line 59 at r2 (raw file):
.v .iter_mut() .map(|i| unsafe {
Same here
Code quote:
i
crates/air_utils/src/trace/row_iterator.rs
line 87 at r2 (raw file):
left[i] = lhs; right[i] = rhs; }
This doesn't need unsafe
Suggestion:
let (left, right) = self.data.into_iter().map(|| ...).unzip();
...
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: 1 of 3 files reviewed, 4 unresolved discussions (waiting on @Gali-StarkWare and @ohad-starkware)
a discussion (no related file):
Previously, Gali-StarkWare wrote…
Changed to vector so now compile time is back to normal
nice, what about the running time?
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.
Reviewed all commit messages.
Reviewable status: 1 of 3 files reviewed, 5 unresolved discussions (waiting on @Gali-StarkWare and @ohad-starkware)
crates/air_utils/src/trace/component_trace.rs
line 111 at r2 (raw file):
.iter_mut() .map(|col| col.as_mut_slice()) .collect_vec(),
Do we want a collect_vec here? @andrewmilson
Code quote:
collect_vec(),
b19b00c
to
329e0e2
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: 1 of 3 files reviewed, 5 unresolved discussions (waiting on @andrewmilson, @ohad-starkware, and @shaharsamocha7)
a discussion (no related file):
Previously, shaharsamocha7 wrote…
nice, what about the running time?
Looks same as before in the CI, we can do a comparison on the super computer
crates/air_utils/src/trace/component_trace.rs
line 111 at r2 (raw file):
Previously, shaharsamocha7 wrote…
Do we want a collect_vec here? @andrewmilson
I thought it's always better to use collect_vec instead of collect
crates/air_utils/src/trace/row_iterator.rs
line 35 at r2 (raw file):
Previously, andrewmilson (Andrew Milson) wrote…
This is no longer an index. It's a chunk of a column
Done.
crates/air_utils/src/trace/row_iterator.rs
line 59 at r2 (raw file):
Previously, andrewmilson (Andrew Milson) wrote…
Same here
Done.
crates/air_utils/src/trace/row_iterator.rs
line 87 at r2 (raw file):
Previously, andrewmilson (Andrew Milson) wrote…
This doesn't need unsafe
Nice!
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: 1 of 3 files reviewed, 3 unresolved discussions (waiting on @ohad-starkware and @shaharsamocha7)
crates/air_utils/src/trace/component_trace.rs
line 111 at r2 (raw file):
Previously, Gali-StarkWare wrote…
I thought it's always better to use collect_vec instead of collect
LGTM collect_vec and collect are equivalent here
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.
Reviewed 1 of 3 files at r2, 1 of 1 files at r3, all commit messages.
Dismissed @andrewmilson from a discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @andrewmilson, @ohad-starkware, and @shaharsamocha7)
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.
Dismissed @andrewmilson from a discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ohad-starkware and @shaharsamocha7)
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.
Reviewed 1 of 3 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ohad-starkware and @shaharsamocha7)
No description provided.