Azure-Samples / azure-files-samples

This repository contains supporting code (PowerShell modules/scripts, ARM templates, etc.) for deploying, configuring, and using Azure Files.
https://docs.microsoft.com/azure/storage/files/storage-files-introduction
MIT License
226 stars 192 forks source link

Add parallelism option to RestSetAcls #200

Closed MaximeKjaer closed 6 months ago

MaximeKjaer commented 6 months ago

Adds a -Parallel option, which lets the user opt in to processing the files in parallel. In my tests, with parallelism level 10, this represents somewhere between a 7x and 10x improvement.

Also adds a -ThrottleLimit option, which defaults to 10, to control the parallelism level. This might be a useful setting for users to extract the maximal amount of performance for their given situation (network speeds, number of cores, etc).