amazon-ion / ion-python

A Python implementation of Amazon Ion.
https://amazon-ion.github.io/ion-docs/
Apache License 2.0
253 stars 50 forks source link

Implement STRUCT_AS_STD_DICT in C-extension load #330

Closed rmarrowstone closed 6 months ago

rmarrowstone commented 6 months ago

Using a std Python dict is significantly faster. A dataset which is streams of Structs (incredibly common) can expect gains of around 20% for load times.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.