Skip to content

Comments

Fix performance issues due to aliases to deprecated rules#23

Merged
Kocal merged 1 commit intomainfrom
imp-perfs-aliases
Feb 9, 2026
Merged

Fix performance issues due to aliases to deprecated rules#23
Kocal merged 1 commit intomainfrom
imp-perfs-aliases

Conversation

@Kocal
Copy link
Owner

@Kocal Kocal commented Feb 9, 2026

Q A
Bug fix? yes
New feature? no
Fixed tickets Close #...

While trying to find performance issues on https://github.com/Kocal/Gotta-Catch-Em-All due to large usage of Twig Component, I noticed - thanks to Blackfire - that a call to file_exists was taking ~50% of total time:
image

The autoloaded file for alias was a bad idea, it reduced performances each time Composer was initialized.

With this solution:
image

@Kocal Kocal merged commit 42ddbac into main Feb 9, 2026
8 checks passed
@Kocal Kocal deleted the imp-perfs-aliases branch February 9, 2026 21:59
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.

1 participant