# dalvik.annotation.optimization

# dalvik.annotation.optimization

## Annotations

|----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [CriticalNative](https://developer.android.com/reference/kotlin/dalvik/annotation/optimization/CriticalNative) | An ART runtime built-in optimization for`native`methods to speed up JNI transitions: Methods that are annotated with @`CriticalNative`use the fastest available JNI transitions from managed code to the native code and back.                        |
| [FastNative](https://developer.android.com/reference/kotlin/dalvik/annotation/optimization/FastNative)         | An ART runtime built-in optimization for`native`methods to speed up JNI transitions: Compared to normal`native`methods,`native`methods that are annotated with @`FastNative`use faster JNI transitions from managed code to the native code and back. |