commit | 5f612b82bbc2fcfb13865acd3c3835febab23466 | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Wed Jul 22 15:07:27 2009 -0700 |
committer | Andy McFadden <fadden@android.com> | Wed Jul 22 15:13:01 2009 -0700 |
tree | 599bcfbfcafee012919f71af86172e6fd21df292 | |
parent | 6fbc4eb48bf368199f31a25fae60f8f7a378cc52 [diff] |
JNI direct buffer function speedup, part 1. This is a fairly straightforward improvement to GetDirectBufferAddress, caching classes and methodIDs instead of looking them up on every call. This is the best we can do without making the function more vulnerable to internal changes to Harmony's NIO implementation. It looks like we need to take this farther, but this way we have a relatively fast and relatively safe version to fall back on. For internal bug 1943379.