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

Store advices in array #30

Open
gcao opened this issue May 3, 2011 · 1 comment
Open

Store advices in array #30

gcao opened this issue May 3, 2011 · 1 comment

Comments

@gcao
Copy link
Owner

gcao commented May 3, 2011

Advices are stored in an array. Whenever a method is created, the whole array is checked to find the advices that
are applicable to it. Those applicable advices are used to construct the new method. This provides a lot
flexibilities but can be a performance burden.

@gcao
Copy link
Owner Author

gcao commented May 3, 2011

One way to improve performance is to use array to store advices that use regular expression. Advices specific to
methods are stored in hash. (Do this only when performance is proved to be a problem in real world scenarios)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant