You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently jstring values are translated to UTF-8 encoding using JNI.GetStringUTFChars, which makes a copy of the string and allocates new memory for it each time. Instead, we may use the JNI.GetStringUTFRegion method and provide a statically allocated buffer to save extensive (and expensive) memory allocation.
The text was updated successfully, but these errors were encountered:
Currently
jstring
values are translated to UTF-8 encoding usingJNI.GetStringUTFChars
, which makes a copy of the string and allocates new memory for it each time. Instead, we may use theJNI.GetStringUTFRegion
method and provide a statically allocated buffer to save extensive (and expensive) memory allocation.The text was updated successfully, but these errors were encountered: