Skip to content

Commit

Permalink
Updating ZoomableComponent allocator to create the litho views in the…
Browse files Browse the repository at this point in the history
… background thread

Summary:
# Context
- Reels Tab Pinch to Zoom launch backtest has been regressing FVRE, Scroll perf along other metrics [[post]](https://fb.workplace.com/groups/119084311158843/permalink/451425104591427/)
- We are updating the component as per fbcbl recommendation in an attempt to mitigate these issues and fully launch the feature.

# What’s next
Public test targeting this update in v365.

Reviewed By: zielinskimz

Differential Revision: D68447468

fbshipit-source-id: e377f159411eab6d18fff2f1ba4c83d9d74037af
  • Loading branch information
Viviana Torres Guerra authored and facebook-github-bot committed Jan 22, 2025
1 parent 519f13c commit 1198397
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ class ZoomableComponent(
}

companion object {
private val ALLOCATOR: ViewAllocator<LithoZoomableView> = ViewAllocator { context ->
LithoZoomableView(context)
}
private val ALLOCATOR: ViewAllocator<LithoZoomableView> =
ViewAllocator(canPreallocate = true, poolSize = 5) { context -> LithoZoomableView(context) }
}
}

Expand Down

0 comments on commit 1198397

Please sign in to comment.