Skip to content
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 when there is no cache yet #86

Open
denise-kao opened this issue Sep 6, 2024 · 0 comments
Open

Performance issue when there is no cache yet #86

denise-kao opened this issue Sep 6, 2024 · 0 comments
Labels
enhancement 🎆 New feature or request

Comments

@denise-kao
Copy link
Contributor

denise-kao commented Sep 6, 2024

Okapi\Aop\Core\AutoloadInterceptor\ClassLoader will check all files if they match the aspects, even if files under the vendor folder which won't need AOP most of time. This issue causes a long execution time when there is no cache yet.

By Adding an option to exclude files that don't need AOP could lower the execution time significantly.

Following is a simple test with postman (to run the same request 100 times with debug mode on and compare the avg resp time)
This one is the original code
截圖 2024-09-06 下午6 00 00
This one is adding option to exclude paths (I exclude the vendor folder)
截圖 2024-09-06 下午6 01 41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🎆 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants