Skip to content

Conversation

@rustyconover
Copy link
Contributor

Cache the struct types for ManifestEntry and ManifestFile schemas.

Cache the _position_to_field_name lookup in Records if a struct type is passed.

Improve StructReader to use slots and avoid isinstance() lookups on each time the structure is read, by performing the check in init().

Improve StructReader to determine the arguments to create_struct() once in init and reuse the result each time the structure is read, avoid a try block.

Cache the struct types for ManifestEntry and ManifestFile schemas.

Cache the _position_to_field_name lookup in Records if a struct type is passed.

Improve StructReader to use slots and avoid isinstance() lookups on each time
the structure is read, by performing the check in __init__().

Improve StructReader to determine the arguments to create_struct() once in init
and reuse the result each time the structure is read, avoid a try block.
@rustyconover rustyconover force-pushed the fix_python_avro_structs branch from 7b49918 to 0c2cc1d Compare July 16, 2023 13:03
@Fokko Fokko added this to the PyIceberg 0.5.0 release milestone Jul 19, 2023
@rustyconover
Copy link
Contributor Author

Superseded by newer PRs.

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