Array Accessors #334
gatesn
started this conversation in
Feature Requests
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment, arrays are typically flattened in order to make use of the underlying data.
There are a couple of problems with this:
One idea for improving this is to provide a way to iterate flattened chunks of an array, where each chunk is either full (with some globally fixed size, say 4096 elements), or partial (anything less than this).
Alternatively, we could just say it's up to the consumer of Vortex to ensure arrays are chunked small enough to make use of CPU caching? In this world, we might want to lean on this pattern to say that all Vortex arrays must have <u32 elements, and larger arrays can be automatically turned into chunked arrays?
Beta Was this translation helpful? Give feedback.
All reactions