edmondscommerce / doctrine-static-meta

An implementation of Doctrine using the PHP Static Meta Data driver and no annotations
MIT License
2 stars 0 forks source link

Performance Profiling, Testing and Static Analysis #22

Open edmondscommerce opened 6 years ago

edmondscommerce commented 6 years ago

We need to have some kind of tooling for development purposes which can provide information on performance issues and bottlenecks

We also need to extend the tests to ensure that this profiling works and also perhaps have tests that actually actively check client project for doctrine based performance issues

Finally, we should extend the PHPQA based static analysis to actively check for performance (and other) problems

see

Tooling: https://github.com/pixers/PixersDoctrineProfilerBundle

Articles: http://labs.octivi.com/mastering-symfony2-performance-doctrine/ https://tideways.io/profiler/blog/5-doctrine-orm-performance-traps-you-should-avoid https://ocramius.github.io/blog/doctrine-orm-optimization-hydration/ https://www.slideshare.net/marcinchwedziak/effective-doctrine2-performance-tips-for-symfony2-developers-33907944

Docs: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/improving-performance.html#improving-performance

Static Analysis: https://packagist.org/packages/stesie/phpstan-doctrine-checker https://github.com/phpstan/phpstan-doctrine

edmondscommerce commented 6 years ago