Skip to content

Performance: ProcessMigrations - only generate migration name when needed #176

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

Merged
merged 1 commit into from
Jul 17, 2025

Conversation

ClaraLeigh
Copy link
Contributor

As the $appMigration var is only used in console mode for publishing migrations, we should only set it when needed.

While this method has a very small overhead, when you have several packages using this function, it does add up.

ie: on my project, this small change saves me 10-15ms boot time

… when needed

As the `$appMigration` var is only used in console mode for publishing migrations, we should only set it when needed.
@freekmurze freekmurze merged commit f09a799 into spatie:main Jul 17, 2025
49 checks passed
@freekmurze
Copy link
Member

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants