Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

5104 faster jni - #5412

Merged
tobrun merged 1 commit into
masterfrom
5104-faster-jni
Jul 5, 2016
Merged

tobrun merged 1 commit into
masterfrom
5104-faster-jni

Conversation

@tobrun

@tobrun tobrun commented Jun 20, 2016 •

Copy link
Copy Markdown
Member

refs #5104

Expanding this PR scope with suggestion from @jfirebaugh to eliminate getField calls:

  • nativeSetLatLng
    • from 117 to 105ms
  • nativeProjectedMetersForLatLng
    • from 32 to 30ms
  • nativeLatLngForProjectedMeters
    • from 34 to 31ms
  • nativeJumpTo
    • from 94 to 86ms
  • nativeEaseTo
    • from 103 to 94ms
  • nativeFlyTo
    • from 106 to 97ms

Out of scope for this PR:

  • Java List object manipulation in JNI (eg. addMarkers, AddPolylines,...)
  • Offline related calls

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Jun 20, 2016
@tobrun tobrun added this to the android-v4.1.0 milestone Jun 20, 2016
@jfirebaugh

Copy link
Copy Markdown
Contributor

👍

We should do this treatment to all the JNI methods that do multiple GetFields internally.

@zugaldia

Copy link
Copy Markdown
Member

As discussed with @tobrun this is currently pointing against master and not urgent to include in the 4.1 release. Removing it from the milestone.

@zugaldia zugaldia removed this from the android-v4.1.0 milestone Jun 21, 2016
@tobrun
tobrun force-pushed the 5104-faster-jni branch from dc17ddf to 7a3ef31 Compare July 5, 2016 13:42
@tobrun

tobrun commented Jul 5, 2016

Copy link
Copy Markdown
Member Author

Going to rebase, squash and merge

[android] #5104 - make nativeLatLngForPix faster (52ms - 45ms).

[andriod] #5104 - make nativeSetLatLng faster (117ms to 105ms)

[android] #5104 - make nativeFlyTo faster (106ms to 97ms)

[android] #5104 - make nativeEaseTo faster (103 to 94ms)

[android] #5104 - make nativeJumpTo faster (94 to 86ms)

[android] #5104 - make nativeProjectedMetersForLatLng faster (32 to 30ms)

[android] #5104 - make nativeLatLngForProjectedMeters faster (32 to 30ms)
@tobrun
tobrun force-pushed the 5104-faster-jni branch from 7a3ef31 to 2bf4e20 Compare July 5, 2016 13:43
@tobrun
tobrun merged commit 2bf4e20 into master Jul 5, 2016
@tobrun
tobrun deleted the 5104-faster-jni branch July 5, 2016 13:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants