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

Caching fields on C# side #1

Open
Suvitruf opened this issue Jul 22, 2018 · 0 comments
Open

Caching fields on C# side #1

Suvitruf opened this issue Jul 22, 2018 · 0 comments
Labels
Type: Discussion Discuss ideas, etc Type: Enhancement New feature or request

Comments

@Suvitruf
Copy link
Owner

Suvitruf commented Jul 22, 2018

Do we need to cache fields on C# side?

Caching ref fields like PackageInfo https://github.com/Suvitruf/unity-android-native/blob/master/Assets/UnityAndroidNative/Android/Content/Pm/PackageManager.cs#L11 in PackageManager is not the bad idea, 'cause this ref will not be changed.

But what's about primitive types, like mAction field of Intent? It would be a nice to reduce jni calls. But if something changes this field in native object, it will not be automatically changed on C# side.

@Suvitruf Suvitruf added Type: Enhancement New feature or request Type: Discussion Discuss ideas, etc labels Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Discussion Discuss ideas, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant