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

Feature idea access to specific overloads #810

Open
Thrameos opened this issue Jul 22, 2020 · 0 comments
Open

Feature idea access to specific overloads #810

Thrameos opened this issue Jul 22, 2020 · 0 comments
Labels
enhancement Improvement in capability planned for future release on-hold Problem requiring further user input to address

Comments

@Thrameos
Copy link
Contributor

Currently we have dispatches that check all overloads. We have added a cache so that overloads are looked up more quickly. But another option to improve performance would be to allow a user to pick a specific overload.

Example.

   cls=JClass("MyClass")
   m=cls.method.overload(JInt, JInt[:]) # Pick the overload (int, int[])
   obj = cls()
   m(obj, 1, [1,2,3])

This would requires some rearrangement so that a dispatch could use types only for resolution. Does this sound like a feature that would get used?

@Thrameos Thrameos added the enhancement Improvement in capability planned for future release label Jul 22, 2020
@Thrameos Thrameos added the on-hold Problem requiring further user input to address label Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement in capability planned for future release on-hold Problem requiring further user input to address
Projects
None yet
Development

No branches or pull requests

1 participant