Skip to content

Performance issue when there is no cache yet #86

Description

@denise-kao

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions