Investigate Java collection wrappers performance #8858
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
Investigate if any of the methods provided by our Java collection wrappers (
JavaList
,JavaDictionary
, etc.) could be implemented more efficiently.For example,
JavaList
implementsToArray ()
by callingjava.util.List.get (int)
for each item in theList
, 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?The text was updated successfully, but these errors were encountered: