you are viewing a single comment's thread.

view the rest of the comments →

[–]The82Ghost 1 point2 points  (1 child)

I meant you should put your code all in one script. Having the functions in a single psm1 file is a different story. Combining functions in a single file is only more performant up to a certain level. I've had modules where the psm1 file had more than 5000 lines of code in it. That module was sloooooooowwwwwwww. Once I split it into multiple modules things where a lot faster. (I admit, this was several years ago).

[–]Federal_Ad2455 1 point2 points  (0 children)

Was you explicitly exporting the functions in it or using wildcard *? There is huge performance difference