2 ms·
I got a lot more than a 25% improvement.. you seem to have a much quicker machine or perhaps you were running one of the earlier scripts? For the wine glass sc
by lburton 9y ago
I got a lot more than a 25% improvement.. you seem to have a much quicker machine or perhaps you were running one of the earlier scripts? For the wine glass script it went from >2 minutes to 1.5 seconds when output buffered. https://github.com/cosmosdarwin/obj-in-powershell/pull/1 https://github.com/cosmosdarwin/obj-in-powershell/pull/1
Also for those that haven't come across it https://github.com/dlwyatt/PowershellProfiler https://github.com/dlwyatt/PowershellProfiler is pretty useful.. despite add-content being the obvious offender here..
- da_chicken 9y agoI have a 10 year old PC. The 210ms to 140 ms time was with the single cylinder script, which is much shorter, and the < 3 second prediction was for the wine glass script. I just guessed by looking that it wouldn't be hard to improve by an order of magnitude. Sorry if I wasn't clear!
- juststeve 9y agoget-content is very slow as well