-
Notifications
You must be signed in to change notification settings - Fork 409
Description
Being able to get the configured or system default batch size from fsspec is useful when using filesystems that support an additional level of concurrency (beyond the existing fs methods that support file batching like get()
/put()
).
See: adlfs, which supports setting concurrency for chunked/multipart uploads and downloads (and in this case concurrency is handled by sending a batch size to the underlying Azure SDK, scheduling the individual chunk upload/download in adlfs with _run_coros_in_chunks()
is not an option).
_get_batch_size()
is currently marked as protected (with the leading _
) and internally only gets called in asyn._run_coros_in_chunks()
, but it would be better if fsspec exposed a public method for getting the configured batch size