Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor DataLayouts #1932

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Refactor DataLayouts #1932

merged 1 commit into from
Aug 14, 2024

Conversation

charleskawczynski
Copy link
Member

@charleskawczynski charleskawczynski commented Aug 14, 2024

This PR refactors some of the internals of DataLayouts. Some of the goals are:

  • use parent less
  • use universal_size more consistently
  • Reduce code duplication
    • replace_basetype
    • Base.copy
    • rebuild
    • getproperty/_property_view
    • adapt_structure

I think/hope that helpers like type_params and union_all can perhaps eventually reduce code duplication with slab/column etc.

This is a nice contribution towards #1780 and #1928.

Copy link
Member

@Sbozzolo Sbozzolo left a comment

Choose a reason for hiding this comment

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

Thank you! Maybe you could add a docstring to union_all because it is not immediately clear how/when to use it.

Reduce more code duplication in DataLayouts

Reduce more code duplication

Reduce more code duplication
@charleskawczynski charleskawczynski merged commit c2451ad into main Aug 14, 2024
13 of 18 checks passed
@charleskawczynski charleskawczynski deleted the ck/DL_size branch August 14, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants