Descriptionjni_helpers: Optimize IsNull()
The current implementation is unnecessary expensive - we create a local reference frame for creating new Java objects and then create a new local reference. It's cheaper to just do jni->IsSameObject(obj, nullptr).
R=perkj@webrtc.org
Committed: https://crrev.com/ffdd41ecf2180c4f52f003915a4bd514bb5e5736
Cr-Commit-Position: refs/heads/master@{#11825}
Patch Set 1 #
Messages
Total messages: 12 (6 generated)
|