{ "changes": [ { "host": "android", "project": "platform/frameworks/support", "creationTime": "1685054677000", "lastModificationTime": "1685054677000", "latestRevision": "44803b34660be3a88f32fa8130ff682ff0280483", "revisions": [ { "gitRevision": "44803b34660be3a88f32fa8130ff682ff0280483", "commit": { "author": { "name": "Chet Haase", "email": "chet@google.com" }, "committer": { "name": "Gerrit Code Review", "email": "noreply-gerritcodereview@google.com" }, "subject": "Merge \"Improve allocations during pointer handling\" into androidx-main", "commitMessage": "Merge \"Improve allocations during pointer handling\" into androidx-main" } } ], "projectPath": "frameworks/support" }, { "host": "android", "project": "platform/frameworks/support", "branch": "androidx-main", "changeNumber": "2599297", "patchset": 8, "status": "merged", "creationTime": "1684803877000", "lastModificationTime": "1685054676000", "latestRevision": "591f6bcb2c9567e6f2aa06bd981b50d419b6b7cb", "revisions": [ { "gitRevision": "591f6bcb2c9567e6f2aa06bd981b50d419b6b7cb", "patchSet": 8, "fetchs": [ { "method": "repo", "url": "platform/frameworks/support", "ref": "refs/changes/97/2599297/8" }, { "method": "http", "url": "https://android.googlesource.com/platform/frameworks/support", "ref": "refs/changes/97/2599297/8" } ], "commit": { "parents": [ { "commitId": "6329c243193004f28e3b2af7942fcceb7e4010fb", "subject": "Merge \"Update EngagementSignalsCallback documentation\" into androidx-main" } ], "author": { "name": "Chet Haase", "email": "chet@google.com" }, "committer": { "name": "Chet Haase", "email": "chet@google.com" }, "subject": "Improve allocations during pointer handling", "commitMessage": "Improve allocations during pointer handling\n\nThe previous implementation of pointer handling used a HashMap\nto hold pointer information. HashMap uses Objects for keys, so\nthe value class for PointerId (basically an alias for a Long primitive\nvalue) was constantly being auto-boxed because it was used as a key.\n\nThe new approach uses the leaner LongSparseArray, which was created\nspecifically to optimze for this use case; using primitive Long values\nas keys for an array.\n\nBug: 283871952\nTest: PointerInputTest passes, including new pointerIdArrayTest\nChange-Id: I77ae2d3de1f2604b7d61ed7a1d7215815dbbf999\n", "bugIds": [ "283871952" ] }, "creationTime": "1685049868000", "ref": "refs/changes/97/2599297/8", "uploader": { "name": "Chet Haase", "email": "chet@google.com", "accountId": "1060111" } } ], "owner": { "name": "Chet Haase", "email": "chet@google.com" }, "changeId": "I77ae2d3de1f2604b7d61ed7a1d7215815dbbf999", "submittedTime": "1685054676000", "projectPath": "frameworks/support" } ] }