-
Notifications
You must be signed in to change notification settings - Fork 120
Arc<Box<_>> a struct array's children #4989
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
Conversation
5b01ddf to
bd2b5eb
Compare
| pub fn new( | ||
| names: FieldNames, | ||
| fields: impl Into<Arc<[ArrayRef]>>, | ||
| fields: impl Into<Arc<Box<[ArrayRef]>>>, |
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.
Either way, I would strongly prefer this to not be an impl Into and have the caller invoke .into()!
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.
yeah if this shows any promise I'll create a type here, we should really stop having functions that take these complex Intos
CodSpeed Performance ReportMerging #4989 will degrade performances by 61.74%Comparing Summary
Benchmarks breakdown
|
Benchmarks: FineWeb NVMeSummary
Detailed Results Table
|
Benchmarks: FineWeb S3Summary
Detailed Results Table
|
Benchmarks: TPC-H SF=1 on NVMESummary
Detailed Results Table
|
Benchmarks: TPC-H SF=1 on S3Summary
Detailed Results Table
|
Benchmarks: TPC-H SF=10 on NVMESummary
Detailed Results Table
|
Benchmarks: TPC-H SF=10 on S3Summary
Detailed Results Table
|
Benchmarks: TPC-DS SF=1 on NVMESummary
Detailed Results Table
|
Benchmarks: Clickbench on NVMESummary
Detailed Results Table
|
|
I really want to believe these benchmark results, but this is the second PR I saw in the past ~hour that shows a 40% improvement in clickbench q0 |
Benchmarks: Statistical and Population GeneticsSummary
Detailed Results Table
|
bd2b5eb to
df66020
Compare
|
seems like the varbinview change regressed performance? I'll try to better separate it out to make it easier to figure out. |
3593379 to
5cad79b
Compare
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
2c94b2b to
2ad7406
Compare
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
de0c1b9 to
374da1b
Compare
gatesn
left a comment
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.
Discussed offline, we will try to find a lint that checks for unnecessary vec![..].into() when [...].into() would be sufficient.
The thinking here is that
Vec<T>->Arc<[T]>requires copying the data, butVec<T>->Box<[T]>does not.This PR also introduces a new struct named
StructArrays(really need a different name) that wraps the children to make the API a bit more ergonomic and less dependent on the actual pointers it uses.The benchmarks results are really confusing, but there's some positive trend (potentially just wishful thinking).