Agilefreaks / Aquarium

An AOP library for Ruby
https://rubygems.org/gems/aquarium/
149 stars 24 forks source link

[RubyForge-13394] Use a lighter-weight static join point by default. #11

Open hedgehog opened 14 years ago

hedgehog commented 14 years ago

Date:2007-08-26 19:37 Priority:2 Submitted By:Dean Wampler (deanwampler) Assigned To:Dean Wampler (deanwampler) Category:Optimizations State:Open Summary:Use a lighter-weight static join point by default.

Detailed description

Should the join points be a lighter-weight, static join point, by default? Ideally, the runtime context object should only be created if the advice actually uses it! Determining whether or not this is true won't be easy, however. ParseTree might be usable to figure out if the context is used by the compiled proc. (TBD)