Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module - Bundle on build & publish for better performance #877

Open
o-l-a-v opened this issue Feb 5, 2025 · 2 comments
Open

Module - Bundle on build & publish for better performance #877

o-l-a-v opened this issue Feb 5, 2025 · 2 comments
Assignees

Comments

@o-l-a-v
Copy link
Contributor

o-l-a-v commented Feb 5, 2025

Is your feature request related to a problem? Please describe.

The EnterprisePolicyAsCode module is consisting of a growing amount of one *.ps1 file per function. This makes module install and import slower than it has to be.

Image

Resources on best practice for perf:

Describe the solution you'd like

Consider doing a build / bundle step in the release pipeline to bundle these files into one single *.psm1?

Some relevant tools:

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@o-l-a-v o-l-a-v changed the title Module - Bundle on build & publish for better performance and less overhead Module - Bundle on build & publish for better performance Feb 5, 2025
@brianmooremsft
Copy link
Collaborator

@anwather - for your consideration...

@anwather
Copy link
Collaborator

A good idea - for most customers they will run this via a pipeline so the module load time is not as noticeable - but in terms of overall optimisation it is a promising idea. Rather than introduce more tools into the pipeline I'll just code it into the build scripts eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants