Skip to content

feat: use LazyLock for constructing union types#1423

Open
nuts-rice wants to merge 5 commits intogeoarrow:mainfrom
nuts-rice:lazylock-geo-data-type
Open

feat: use LazyLock for constructing union types#1423
nuts-rice wants to merge 5 commits intogeoarrow:mainfrom
nuts-rice:lazylock-geo-data-type

Conversation

@nuts-rice
Copy link
Copy Markdown
Contributor

  • Static LazyLocks for caching mixed union types
  • Static LazyLocks for GeometryType
  • mixed_data_type is now indexed lookup at MIXED_UNION_TYPES
  • GeometryType::data_type() is indexed lookup at GEOMETRY_UNION_TYPES

@github-actions github-actions bot added the feat label Jan 26, 2026
Copy link
Copy Markdown
Member

@kylebarron kylebarron left a comment

Choose a reason for hiding this comment

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

Thanks!

}

fn mixed_data_type(coord_type: CoordType, dim: Dimension) -> DataType {
//idx calculated as (coord_type as usize) * 4 + (dim as usize)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This comment is useless; it describes the same thing as the line of code below

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