3 ms·
Unless things have changed the pipelines in powershell are collectors, unlike fifos in unix. For small tasks it's fine, but when shifting large blocks of data i
by 6c696e7578 3y ago
Unless things have changed the pipelines in powershell are collectors, unlike fifos in unix. For small tasks it's fine, but when shifting large blocks of data it can be noticeable slower.
- AndrewDucker 3y agoThe pipelines pass one item at a time unless you deliberately make them into collectors.
- 6c696e7578 3y agoFrom memory I was doing something like write-output $var within a loop. My assumption was that a single item was readable at write time by the right hand side of the pipe. It built up something like a gig in memory before it was readable, which wasn't what I was expecting. What would have been the way to make that more like a unix pipe? I didn't get to the bottom of it as time didn't permit.