summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@google.com>2020-09-11 11:18:28 -0600
committerJeff Sharkey <jsharkey@google.com>2020-09-11 11:18:30 -0600
commitc208099506913a64b016e755185c11a269cf2b83 (patch)
tree1f54998ef17b6a25fcfdd9a703a093bfa3882485 /rs/java/android/renderscript/ProgramStore.java
parent95e32f0f9a6c65b4e9089608d4ff7e468200cbeb (diff)
Remove advisory registerNativeAllocation().
After consulting with the ART team, we learned that sending them detailed advisory native allocation sizes isn't as useful when the overall lifecycle of the object is tightly managed, which is the case with Parcel objects. (Because Parcel users use explicit obtain() and recycle() methods, any variable-sized native allocations have already been freed by the time a Parcel instance is considered for GC.) The Parcel benchmarks referenced below are showing a uniform ~3% performance improvement across 1, 4, and 16 thread cases. Note that this is in addition to the improvements recently made with the shift to a linked-list pooling design. Bug: 165032569 Test: ./frameworks/base/libs/hwui/tests/scripts/prep_generic.sh little && atest CorePerfTests:android.os.ParcelObtainPerfTest Change-Id: Id0ce9b3bff1d0ffb426a9f105c7a54eb00060f85
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions