forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We could support more arities here, but it is difficult to predict whether that might bind methods that should not be bound (e.g. if a multiple-arity method had one common uber method with > 3 args it would be bound, skipping the annotated arities). In order to land this without introducing too much complexity, I'm limiting it to arities <= 3. There may be some overhead from trying and failing to acquire a specific-arity target repeatedly. I will be refactoring the indy binding logic to live close to (or inside) the DynamicMethod types in order to let them slowly cache all arities with any handle adaptations necessary. This will eliminate the extra overhead by failing to find a given arity exactly once.
- Loading branch information
Showing
1 changed file
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters