-
Notifications
You must be signed in to change notification settings - Fork 131
Use Scalar directly for constant array metadata inlining
#6439
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
Signed-off-by: Connor Tsui <[email protected]>
Scalar directly for constant array metadata inlining
| /// Currently, scalars are **always** stored in a separate buffer, regardless of if we inline a | ||
| /// small scalar into the metadata. |
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.
See PR description above also.
We should be able to modify the visitor to just check if the scalar size is too big? But that could potentially be error-prone?
Signed-off-by: Connor Tsui <[email protected]>
|
The problem is that you need this scalar in two places almost always. We were debating having a constant pool in the file to support batching all the constant array buffers |
Signed-off-by: Connor Tsui <[email protected]>
Polar Signals Profiling ResultsLatest Run
Powered by Polar Signals Cloud |
Benchmarks: TPC-H SF=1 on NVMESummary
Detailed Results Table
|
Benchmarks: PolarSignals ProfilingSummary
Detailed Results Table
|
Benchmarks: FineWeb NVMeSummary
Detailed Results Table
|
Benchmarks: TPC-H SF=1 on S3Summary
Detailed Results Table
|
Benchmarks: TPC-DS SF=1 on NVMESummary
Detailed Results Table
|
Benchmarks: TPC-H SF=10 on NVMESummary
Detailed Results Table
|
Benchmarks: FineWeb S3Summary
Detailed Results Table
|
Benchmarks: Random AccessSummary
Detailed Results Table
|
Benchmarks: Statistical and Population GeneticsSummary
Detailed Results Table
|
Benchmarks: TPC-H SF=10 on S3Summary
Detailed Results Table
|
Benchmarks: Clickbench on NVMESummary
Detailed Results Table
|
Benchmarks: CompressionSummary
Detailed Results Table
|
Changes the metadata for
ConstantArraytoOption<Scalar>.#6363 added functionality for inlining the constant scalar if it was small enough in the array metadata. This change adds to that by using a scalar directly for this. It is optional since we do not always want to do this.
Tests incoming!
Also, I think it is worth considering if we should not write the scalars to the buffers if we make this optimization. As is, this is doing double work.