News for hackers. Stuff that matters.
Re:Microsoft and Canonical partner to bring Ubuntu to Window... by ljani on Wednesday March 30, 2016 @11:33AM (#11390030)
I'm always put off by the ~five second startup time when I open PS to start learning it. Any tips for speeding it up?
Re:Microsoft and Canonical partner to bring Ubuntu to Window... by adiabatty on Wednesday March 30, 2016 @12:57PM (#11390819)
On my i5-2400 with 8 GB of RAM and a 7200 RPM hard drive, it takes six seconds to start the first time and four seconds to start subsequent times.

On my i5-3550 with 16 GB of RAM and an SSD it takes a couple seconds to start the first time and less than a second for subsequent times.

Both machines are running Windows 10.

Right now, the machine with the spinning rust is loading a bunch of files with an I/O priority of "background" because it just got booted into Windows; that might slow it down a bit because of the seek times and I don't know if Windows is willing to starve background I/O for seconds at a time to speed up interactive requests (I doubt it).

Update: once all the background preloading is done, PowerShell restarts in three seconds on the spinning-rust machine.

Long story short, I think getting an SSD will be the thing that makes PowerShell start acceptably fast.

Re:Microsoft and Canonical partner to bring Ubuntu to Window... by JeffreySnover on Wednesday March 30, 2016 @02:37PM (#11391796)
We did a lot of work on PowerShell startup in this next release - I think you'll be happy.

Jeffrey Snover [MSFT]

Re:Microsoft and Canonical partner to bring Ubuntu to Window... by keithpeter on Wednesday March 30, 2016 @01:50PM (#11391382)
Ancient Thinkpad dual-core with 512Mb RAM and 5400 legacy spinning rust disc running OpenBSD 5.9.

Left click in fwvm, select xterm, window appears in less than my blink response time.

Seriously: I think I might pop Win10 on an old Dell i5 that came with Win7 and play with this.

Re:Microsoft and Canonical partner to bring Ubuntu to Window... by ljani on Wednesday March 30, 2016 @02:31PM (#11391749)
Many thanks for the comparison! I'm indeed with a 7200 RPM disk. I guess I should invest into some new hardware soonish :)
Re:Microsoft and Canonical partner to bring Ubuntu to Window... by ygra on Wednesday March 30, 2016 @11:44AM (#11390112)
Speed was an issue on Windows 7 (PSv2), but they sped it up considerably in Windows 8 (PSv4, I think). Maybe installing the current PowerShell version helps; I doubt it's inherent in the OS.
Re:Microsoft and Canonical partner to bring Ubuntu to Window... by ljani on Wednesday March 30, 2016 @02:30PM (#11391736)
I'm on Windows 10 and I agree it has improved a lot since Win7, but it's still not pleasant. I'm rocking a 7200rpm spinning disk, so as suggested by adiabatty, getting an SSD might help.
Re:Microsoft and Canonical partner to bring Ubuntu to Window... by vetinari on Wednesday March 30, 2016 @01:05PM (#11390899)
Can confirm, it starts immediately in 2012r2.
Re:Microsoft and Canonical partner to bring Ubuntu to Window... by dogma1138 on Wednesday March 30, 2016 @04:16PM (#11392608)
Depending what you open, powershell.exe should open as fast as cmd.exe pretty much, the ISE can take a few seconds to load based on the addons you have and how many PS cmdlets you have registered on your system.

As people have mentioned the biggest factor here is probably your hard drive since you are loading maybe couple of 100's of small files when you load the ISE.

Re:Microsoft and Canonical partner to bring Ubuntu to Window... by kuma4 on Wednesday March 30, 2016 @12:03PM (#11390258)
PowerShell is great. But I agree it starts slowly.
Re:Microsoft and Canonical partner to bring Ubuntu to Window... by orbitingpluto on Wednesday March 30, 2016 @01:28PM (#11391128)
Just upgraded to WMF 5.0 on Windows 7. Start time is much better now. 4 seconds vs 8 seconds on a 2nd gen i5.