-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mono.Android] Use C#9 Function Pointer backend for JNI (#8234)
Context: dotnet/java-interop@312fbf4 As per dotnet/java-interop@312fbf43: > With a Release build, the Average Invocation time for > JIFunctionPointersTiming takes 97% of the time as JIPinvokeTiming, > i.e. is 3% faster. Additionally, using C#9 Function Pointers means we can get rid of all of the `java_interop_jnienv_*()` functions, which shrinks `libmonodroid.so` by ~55KB for each ABI. This also means that `Java.Interop.dll` can be used as-is on Windows and macOS, providing a way to get a usable `Java.Interop.dll` without needing to build the xamarin/Java.Interop repo. (Though it's unlikely to be *that* useful without a `Java.Runtime.Environment.dll` to actually bootstrap things…)
- Loading branch information
Showing
10 changed files
with
69 additions
and
2,318 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
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
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
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
Oops, something went wrong.