mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7d6d5daa2b
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