Łukasz Paczos
Łukasz Paczos
Tagging @mapbox/maps-android here.
Adding a more detailed profile screenshot: 
Property values are one thing (that I didn't measure) and it does make sense to always ask GL-Native for that since it's the source of truth. The concern here is...
We could also use `styleLayerExists`/`styleSourceExists` before returning the cached reference since those methods seem to be much faster.
@pengdev happy to take it for a spin whenever you think it's ready :+1:
My benchmarks integrating the snapshot into the Nav SDK are even more promising given the frequency with which we call all the methods. _Before_  ![Screenshot from...
And then the generated expression is set here: https://github.com/mapbox/mapbox-navigation-android/blob/6d041e3f11ef0ae200aa97a57ae02f26b49ff658/libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/route/line/api/MapboxRouteLineView.kt#L328-L334
@pengdev you can try updating the gradient every time the `OnIndicatorPositionChangedListener` fires. We do that for 3 line layers in the Nav SDK.
@kmadsen is this still relevant?
That makes sense to me - we can inject an additional generic `"Proceed to route start"` instructions when `INITIALIZED` state is detected with usage of `MapboxManeuverApi#getManeuvers(RouteProgress)`. We should also add...