-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor caching of Spannable objects instide TextLayoutManager
Summary: This diff optimizes the caching of Spannable objects managed by the TextLayoutManager class. Previously, these objects were cached using unsing a String representation of the RedableMap (creating this string adds a non trivial cost), this diff improves the caching performance relying on the equals / hashcode methods of the ReadableNativeMap class I created a MC just to have a killswitch Motivation: I was analysing another bug and I found this non performant code changelog: [internal] internal Reviewed By: shergin Differential Revision: D23429365 fbshipit-source-id: 59e5ad0b1b95da992ac393aecfe029da68a8df97
- Loading branch information
1 parent
045d8fe
commit 7d6d5da
Showing
3 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters