saf_stream_jni_io library
Classes
- SafStreamJniIo
-
JStaticMethodIds are resolved once and cached (static final, matching the pattern package:jni's own generated bindings use incore_bindings.dart), not re-resolved withstaticMethodId(...)on every chunk.GetStaticMethodIDis a reflective symbol-table lookup; at a 64 KB chunk size against a 100 MB file that's ~1600 lookups per direction that were previously happening on every single call.