Skip to content

Add close() to WSShard and WSDataset to release file handles#62

Closed
shahbaz-humeai wants to merge 1 commit into
mainfrom
shahbaz/open-file-pointers
Closed

Add close() to WSShard and WSDataset to release file handles#62
shahbaz-humeai wants to merge 1 commit into
mainfrom
shahbaz/open-file-pointers

Conversation

@shahbaz-humeai
Copy link
Copy Markdown
Contributor

@shahbaz-humeai shahbaz-humeai commented Apr 10, 2026

No description provided.

WSShard now stores the pa.OSFile/memory_map handle separately and
exposes close() to release it. WSDataset.close() iterates all cached
open shards and closes them. Also fixes WSShard(dataset=None) crash
on disable_memory_map access.
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