-
Notifications
You must be signed in to change notification settings - Fork 170
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
Performance issue in aliases.php when not using all components that can be traced #827
Comments
Ideally, determining which of the tracing classes to use is done once (when the symfony service container is being build) and not on every request. |
There quite a few ways you can improve autoloader performance, outlined here https://getcomposer.org/doc/articles/autoloader-optimization.md.
|
How do you use Sentry?
Self-hosted / on-premises
SDK version
4.14.0
Steps to reproduce
doctrine/dbal
.sentry-symfony
to it without tracing enabled.Expected result
The code has a minimal perfomance penalty, as we do load the sentry components for error reporting.
Actual result
The overall performance of a request decreases too much.
The reason behind this is that the autoloader is looking up the
Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingStatement
class over and over again (and doing multiple requests to the file system [NFS] in the process), because classes that cannot be found, will not be cached in opcache.The text was updated successfully, but these errors were encountered: