Page MenuHomePhabricator

[native] Memoize `ConnectedRemoteImage`
ClosedPublic

Authored by atul on Sep 14 2023, 7:44 PM.
Tags
None
Referenced Files
F2206125: D9214.id31187.diff
Sun, Jul 7, 12:05 AM
Unknown Object (File)
Fri, Jul 5, 8:22 PM
Unknown Object (File)
Fri, Jul 5, 8:17 PM
Unknown Object (File)
Fri, Jul 5, 6:30 PM
Unknown Object (File)
Tue, Jul 2, 8:25 PM
Unknown Object (File)
Thu, Jun 27, 9:41 AM
Unknown Object (File)
Wed, Jun 26, 4:03 PM
Unknown Object (File)
Wed, Jun 26, 12:56 PM
Subscribers

Details

Summary

Similar to D9213, the profiler isn't providing much information here so I'm memoizing this on a whim to see if anything changes. Doubt this changes anything at all.


Depends on D9213

Test Plan

ConnectedRemoteImage continues to look as expected.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.Sep 14 2023, 7:44 PM

If the performance isn't impacted much one way or the other, is the memory usage of memoizing this not noticeable as well?

This revision is now accepted and ready to land.Sep 15 2023, 2:21 PM
In D9214#271139, @rohan wrote:

If the performance isn't impacted much one way or the other, is the memory usage of memoizing this not noticeable as well?

Memory usage of these memoizations is pretty much trivial

This revision was landed with ongoing or failed builds.Sep 17 2023, 3:31 PM
This revision was automatically updated to reflect the committed changes.