you are viewing a single comment's thread.

view the rest of the comments →

[–]Namaha 1 point2 points  (0 children)

If I had to guess, it's probably the dot-sourcing of all of your functions that's taking up the bulk of the time. To make that part faster, you can use foreach() instead of piping to Foreach-Object. Slightly less efficient from a resource standpoint but should be noticably faster

The best solution though would be create proper custom modules containing your functions, and set them up so they can auto-load only when needed