Working concept of pipeline
suggest changeIn a pipeline series each function runs parallel to the others, like parallel threads. The first processed object is transmitted to the next pipeline and the next processing is immediately executed in another thread. This explains the high speed gain compared to the standard ForEach
@( bigFile_1, bigFile_2, ..., bigFile_n) | Copy-File | Encrypt-File | Get-Md5
- step - copy the first file (in
Copy-file
Thread) - step - copy
second file (in `Copy-file` Thread) and simultaneously Encrypt the
first (in `Encrypt-File`)
- step - copy third file (in
Copy-file
Thread) and simultaneously encrypt second file (inEncrypt-File
) and simultaneouslyget-Md5
of the first (inGet-Md5
)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents