...by using expand_info=False by default (same logic as fs.glob())
before:
In [1]: from huggingface_hub import HfFileSystem
In [2]: %time _ = list(HfFileSystem().walk("hf://datasets/allenai/c4/en"))
CPU times: user 275 ms, sys: 27.6 ms, total: 302 ms
Wall time: 11.6 s
after:
In [1]: from huggingface_hub import HfFileSystem
In [2]: %time _ = list(HfFileSystem().walk("hf://datasets/allenai/c4/en"))
CPU times: user 176 ms, sys: 22.4 ms, total: 198 ms
Wall time: 3.25 s
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
...by using
expand_info=False
by default (same logic asfs.glob()
)before:
after: