Conversation
Merging this PR will degrade performance by 24.38%
Performance Changes
Comparing Footnotes
|
| pub(super) indices: BufferHandle, | ||
| /// patch values corresponding to the indices. The ptype is specified by `values_ptype`. | ||
| pub(super) values: BufferHandle, |
There was a problem hiding this comment.
I really think we should reconsider this.
This array (+ constant) should be used to replace the sparse array so I think we really want to store things other than PTypes?
There was a problem hiding this comment.
I'm not sure if this array is well-suited for non-primitive types. How many lanes does a List<Struct{u32,utf8}> have? I was tempted to actually put this into the vortex-fastlanes crate tbh
There was a problem hiding this comment.
i've updated to use child array for values, which should give us some flexibility to change things in the future
c3d7434 to
6c1d7aa
Compare
860cc64 to
042394b
Compare
df8dbf5 to
862d814
Compare
|
@claude review please |
This comment was marked as resolved.
This comment was marked as resolved.
|
@claude i have addressed your main comments. please give another review. |
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
We call append_to_builder on the inner first, then just do a single pass and overwrite what it just wrote. Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
daf258f to
578d83d
Compare
|
@claude please review |
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
|
@claude PR is ready for another review |
|
Claude finished @a10y's task in 8m 28s —— View job PR Review: PatchedArray basics and wiringTasks:
Overall this is solid work — the design is clean, the test coverage is good, and the key operations (slice, filter, take, compare, scalar_at) are all well-structured. I found three correctness bugs of varying severity. Details below. 🔴 Bug 1:
|
|
Docker launches seem broken right now and seems like possibly an upstream thing |
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Summary
This is the first PR in a series addressing the PatchedArray RFC: vortex-data/rfcs#27
This PR adds a new
PatchedArrayarray variant, which is slated to only be used with FastLanes array types. The design is largely documented in the RFC, but brieflyWe are able to pushdown the following at reduce time:
There will be follow ups to add the wiring into CUDA and to update how BitPacked and ALP arrays are written.
Testing
There are unit tests for all of the reducers and kernels