Skip to content

Investigate Java collection wrappers performance #8858

@jpobst

Description

@jpobst

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?

Metadata

Metadata

Assignees

Labels

Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).Area: PerformanceIssues with performance.enhancementProposed change to current functionality.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions