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

Bump to xamarin/Java.Interop/master@706e4cc4 #2500

Merged
merged 1 commit into from Dec 7, 2018

Conversation

jonpryor
Copy link
Member

@jonpryor jonpryor commented Dec 7, 2018

Adds a
Java.Interop.JniRuntime.CreationOptions.UseMarshalMemberBuilder
property which controls whether or not Java.Interop.Export.dll is
loaded during JniRuntime creation.

Xamarin.Android currently doesn't build, bundle, or otherwise include
Java.Interop.Export.dll, and thus the attempted assembly load
always fails, which is "fine" -- the exception is handled
appropriately -- but attempted load and corresponding exception
appears to add about ~100ms to process startup, which is insane.

Set JniRuntime.CreationOptions.UseMarshalMemberBuilder=false so that
we don't attempt to load this assembly, which should help our process
startup times.

Adds a
`Java.Interop.JniRuntime.CreationOptions.UseMarshalMemberBuilder`
property which controls whether or not `Java.Interop.Export.dll` is
loaded during `JniRuntime` creation.

Xamarin.Android currently doesn't build, bundle, or otherwise include
`Java.Interop.Export.dll`, and thus the attempted assembly load
*always fails*, which is "fine" -- the exception is handled
appropriately -- but attempted load and corresponding exception
appears to add about ~100ms to process startup, which is insane.

Set `JniRuntime.CreationOptions.UseMarshalMemberBuilder=false` so that
we don't attempt to load this assembly, which should help our process
startup times.
@jonpryor jonpryor merged commit cee970c into xamarin:master Dec 7, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants