Using the NDK Performantly - Best Practices and Optimization Techniques
Android Developers via YouTube
Overview
Syllabus
Intro
About Me
What is the NDK: Architecture View
The NDK: An Abridged History
Our Assumptions
Benchmarking our Runtime
JNI Basics: Accessing Class Fields
Cache Field/Method IDs
Performance: Field/Method IDs (ns)
Dalvik VS ART: GetintField
JNI Tips Scorecard
Use GetStringchars
Performance: GetString(UTF)Chars
Performance: Longer GetString(UTF)Chars
ART: GetString Chars vs GetStringUTFChars
ART: IsMovableObject
Use GetString Region
Performance: Copying String Data
Sharing Structured Data
Performance: Overhead of a JNI Call
Use DirectByteBuffer
Performance: GetDirectBuffer Address
Exploring ByteBuffer, direct ByteBuffer
Reading our Integer
FastJNI Declaration
Performance: Read Integer from ByteBuffer
Bulk Fetching
Performance: Copy and Readinteger
Demo: Android Studio
Taught by
Android Developers