Skip to content

Analyzing Tempest CatalogInitializer is slow #14978

Closed
phpstan/phpstan-src
#6116

Description

@staabm

Bug report

for some reason analyzing CatalogInitializer in tempest-framework takes a lot of time. especiall when running it in blackfire profiler, it takes 1min 16 alone.
running it in plain phpstan takes ~5 seconds on a mac M4:

➜  tempest-framework git:(3.x) ✗ vendor/bin/phpstan analyze --debug packages/intl/src/Catalog/CatalogInitializer.php -v
Note: Using configuration file /Users/m.staab/dvl/tempest-framework/phpstan.neon.dist.
/Users/m.staab/dvl/tempest-framework/packages/intl/src/Catalog/CatalogInitializer.php
                                                                                                                        
 [OK] No errors                                                                                         

Elapsed time: 4.76 seconds
Used memory: 90.5 MB

tested on phpstan-src 2.2.x@ce1a7f1

PHP 8.5.8 (cli) (built: Jul 1 2026 03:46:27) (NTS)

Code snippet that reproduces the problem

No response

Expected output

should be doable in 1-2 seconds - or even faster

Did PHPStan help you today? Did it make you happy in any way?

No response

Activity

  1. mergeable commented on Jul 21, 2026

    @mergeable

    This bug report is missing a link to reproduction at phpstan.org/try.

    It will most likely be closed after manual review.

  2. staabm commented on Jul 21, 2026

    @staabm
    ContributorAuthor

    per blackfire the most time consuming functions are:

    Image
  3. github-actions commented on Sep 4, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked as resolved and limited conversation to collaborators on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions