Fix up scalar values in Vortex #6214
gatesn
started this conversation in
Feature Requests
Replies: 1 comment
-
|
I think if Scalars can hold single element arrays then we can have Array::scalar_at but we should mention in docs that repeatedly calling it is not the optimal behaviour (but getting single element is). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Vortex scalars are currently very heavy-weight objects. They're not necessarily on the hot path in many places, but they come with a lot of baggage.
As arrays move towards becoming logical plans, the
Array::scalar_atfunction will need to perform compute. Scalars in their current form are also very inefficient for nested types such as structs and lists, requiring each child to be its own Arc value.Proposal
Questions
Beta Was this translation helpful? Give feedback.
All reactions