Skip to content

Core protocol v3.0 - chunk memory layouts#24

Merged
alimanfoo merged 2 commits intozarr-developers:core-protocol-v3.0-devfrom
alimanfoo:core-protocol-v3.0-memory-layout
May 21, 2019
Merged

Core protocol v3.0 - chunk memory layouts#24
alimanfoo merged 2 commits intozarr-developers:core-protocol-v3.0-devfrom
alimanfoo:core-protocol-v3.0-memory-layout

Conversation

@alimanfoo
Copy link
Member

This PR adds draft content for the core protocol v3.0 section on memory layouts.

@alimanfoo alimanfoo requested a review from a team May 9, 2019 16:25
@alimanfoo alimanfoo force-pushed the core-protocol-v3.0-memory-layout branch from 639b98d to 0a7b70a Compare May 9, 2019 16:43
For example, for a two-dimensional array with chunk shape (dx, dy),
the binary values for a given chunk are taken from chunk elements in
the order (0, 0), (0, 1), (0, 2), ..., (dx - 1, dy - 3), (dx - 1, dy -
2), (dx - 1, dy - 1).
Copy link
Member

Choose a reason for hiding this comment

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

Maybe worth mentioning here, that the memory offset/location within the chunk is determined by this ordering and the size of the dtype. Will endianness be in the dtype section only (I know it's mentioned already). That could be be loosely considered memory layout, especially for sub-byte types.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good. Could you suggest an edit?

@alimanfoo alimanfoo changed the title WIP: Core protocol v3.0 - memory layouts Core protocol v3.0 - chunk memory layouts May 14, 2019
@alimanfoo
Copy link
Member Author

In the interests of having content together in one place, I'd like to merge this PR into the core-protocol-v3.0-dev branch. We can still discuss, revise and revisit anything after merge. I'll merge tomorrow if no objections.

@alimanfoo alimanfoo merged commit e6af443 into zarr-developers:core-protocol-v3.0-dev May 21, 2019
@alimanfoo alimanfoo deleted the core-protocol-v3.0-memory-layout branch May 21, 2019 11:46
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