Notification scheduler: Remove sort for impression tracker.
This CL removes the sorting for impressions. Also move the logic that prunes expired impressions to the point when the database is just initialized. This can save APK size by 4000 bytes according to diagnose_bloat.py. Resource Sizes Diff: Specifics: -4,096 bytes main lib size -4,002 bytes normalized apk size InstallSize: -4,098 bytes APK size -4,098 bytes Estimated installed size (Android Go) -4,098 bytes Estimated installed size InstallBreakdown (-4,098 bytes): -4,096 bytes Native code size -2 bytes Package metadata size Bug: 972191 Change-Id: Ic6f2e971fb12de5c3b5affabd11c26b4512ea170 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761331Reviewed-by:David Trainor <dtrainor@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#688336}
Showing
Please register or sign in to comment