Skip to content

Fix drop_encoding to avoid copying data (GH#11390)#11394

Open
wali-reheman wants to merge 1 commit into
pydata:mainfrom
wali-reheman:fix/drop-encoding-shallow-copy
Open

Fix drop_encoding to avoid copying data (GH#11390)#11394
wali-reheman wants to merge 1 commit into
pydata:mainfrom
wali-reheman:fix/drop-encoding-shallow-copy

Conversation

@wali-reheman

Copy link
Copy Markdown

drop_encoding() was triggering a full copy of the underlying data array via _replace, which causes OOM on large datasets. Changed _replace to skip the data copy when only encoding/attrs/dims are being updated — this makes drop_encoding() a true shallow operation as the docs suggest.

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.

1 participant