This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Limit JNI calls in nativeUpdateMarker #5103
Labels
Android
Mapbox Maps SDK for Android
performance
Speed, stability, CPU usage, memory usage, or power usage
refactor
In
jni.cpp
we have a method nativeUpdateMarker. This method is used to update the position and icon of a Marker. Currently the method looks like:Following the guidelines related to JNI and mentioned in the Google I/O session related to NDK, we should limit the amount of JNI calls inside one JNI method. In case from above this would result in removing the
jni::GetField
items and replacingjobject marker
with multiple parameters.For example this will result in replacing the following in the method signature:
The text was updated successfully, but these errors were encountered: