Skip to content

Commit 7a52d76

Browse files
committed
bug symfony#54625 [Intl] Remove resources data from classmap generation (shyim)
This PR was merged into the 5.4 branch. Discussion ---------- [Intl] Remove resources data from classmap generation | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT I was annoyed why my `composer install` takes 5 seconds to complete, so I debugged and the most time-consuming was optimized autoloader generation. Looking more deep into, I figured out that Composer looks into any of the "Data PHP" files of Intl. Removed it and it make it much faster for me. It has no negativ effect to Intl component removing them from classmap, as they don't contain something autoloadable. `composer dumpautoload -o` on my project with 137 packages Before: 4.662s After: 1.833s Commits ------- a573eab [Intl] Remove resources data from classmap generation
2 parents 5c0ebc9 + a573eab commit 7a52d76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Intl/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"classmap": [ "Resources/stubs" ],
3838
"files": [ "Resources/functions.php" ],
3939
"exclude-from-classmap": [
40-
"/Tests/"
40+
"/Tests/",
41+
"/Resources/data/"
4142
]
4243
},
4344
"minimum-stability": "dev"

0 commit comments

Comments
 (0)