Skip to content

Conversation

felixcremer
Copy link
Collaborator

This moves the construction of regular chunks from the eachchunk call to the constructor of the Chunked FillArray. This enables to reuse the existing chunking pattern of actual data when constructing a ChunkedFillArray.

Currently haschunks(::ChunkedFillArray) is false and I am wondering whether we should hard code this to true but I can't overview what this would entail.

This moves the construction of regular chunks from the eachchunk call to the constructor of the Chunked FillArray. This enables to reuse the existing chunking pattern of actual data when constructing a ChunkedFillArray.
@felixcremer felixcremer requested a review from meggart March 21, 2025 11:36
chunksize::NTuple{N,Int}
value::T
arrsize::NTuple{N,Int}
chunks::GridChunks{N}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are introducing type instability here, as GridChunks{N} is an abstract type

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ok. Then I should make the chunks a parameter of ChunkedFillArray?

@felixcremer
Copy link
Collaborator Author

This would close #36

@felixcremer
Copy link
Collaborator Author

This should be replaced by RechunkedDiskArray(FillArray(val, size), chunks) as soon as RechunkedDiskArray is ready.

@felixcremer felixcremer merged commit d89b623 into master Mar 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants