summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorJames O'Leary <jamesoleary@google.com>2021-03-08 11:29:22 -0500
committerJames O'Leary <jamesoleary@google.com>2021-03-08 11:29:22 -0500
commitbddae911fc3193a674e070e1c2be8016795c9fa4 (patch)
tree80d35c9f57277f994700e4c13d7206c6106222e5 /rs/java/android/renderscript/RenderScript.java
parentf72cf3cd484aaa34818cf4e3236a9484e6f86aa7 (diff)
Fix boot time regression on Wembley
After a ton of regression testing on Forrest and checking dashboards, turns out the boot time regression due to new color code only happens on Wembley in CI. Wembley in CI has 1 GB of RAM, or at least, it returns true for `ActivityManager.isLowRamDevice` To fix the regression, when we're performing clustering on a low RAM device, we'll use the prior clustering strategy (Kmeans, 5 colors). Net impact is speed improvement + there will be less options for colors. Kmeans erases less common colors first, and those colors tend to be good candidates for highly chromatic colors. Fixes: 181348302 Fixes: 181194430 Test: Did about 50 runs on Forrest, isolated issue. Final Forrest run showing that startservices_avg decreases to previous levels on Wembley with this CL is here: https://android-build.googleplex.com/builds/forrest/run/L87800000829799585 To see the improvement back to baseline (~1350 ms), open that link, at the table of the bottom of the page, click "asit/perf/boottime_test", then click Artifacts, then click test_results15031410639465275315_8163110686177237845.txt, and search for SystemUIBootTiming_startservices_avg. Alternatively, here is a direct link to the test results text file: https://android-build.googleplex.com/builds/I89400007809099518/git_master/P20404532/successiveboottest/inv_17043739560101466259/test_results15031410639465275315_8163110686177237845.txt Change-Id: I53ee5b5f95e6fd54f1327005e391d428f650dbfa
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions