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

Investigate Java collection wrappers performance #8858

Open
jpobst opened this issue Apr 4, 2024 · 0 comments
Open

Investigate Java collection wrappers performance #8858

jpobst opened this issue Apr 4, 2024 · 0 comments
Assignees
Labels
Area: Mono.Android Issues with the Android API binding (Mono.Android.dll). Area: Performance Issues with performance. enhancement Proposed change to current functionality.
Milestone

Comments

@jpobst
Copy link
Contributor

jpobst commented Apr 4, 2024

Investigate if any of the methods provided by our Java collection wrappers (JavaList, JavaDictionary, etc.) could be implemented more efficiently.

For example, JavaList implements ToArray () by calling java.util.List.get (int) for each item in the List, resulting in a lot of marshalling overhead.

Could we instead call java.util.List.toArray () to retrieve all of the items in one call?

Another possibility might be to add something like ToImmutableList () to efficiently move a copy of the list to C# that no longer needs to be kept in sync with Java?

@jpobst jpobst added Area: Performance Issues with performance. Area: Mono.Android Issues with the Android API binding (Mono.Android.dll). labels Apr 4, 2024
@jpobst jpobst self-assigned this Apr 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issues that need to be assigned. label Apr 4, 2024
@jpobst jpobst removed the needs-triage Issues that need to be assigned. label Apr 4, 2024
@jpobst jpobst added this to the .NET 9 milestone Apr 4, 2024
@jpobst jpobst added the enhancement Proposed change to current functionality. label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Mono.Android Issues with the Android API binding (Mono.Android.dll). Area: Performance Issues with performance. enhancement Proposed change to current functionality.
Projects
None yet
Development

No branches or pull requests

1 participant