mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
cdd70f0397
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45501 changelog: [internal] Implement caching for FabricUIManager::getColor. A call to FabricUIManager::getColor takes on average 0.4ms and there can be many of them. The arguments for the call keep repeating in majority of times. Employing a simple caching mechanism here to avoid unnecessary trips via JNI to reduce overhead. The dependencies in graphics in BUCK are incorrect. I tried to separate this into multiple files and move implementation to .cpp file but this will require a bit of a more restructuring to make it possible. Reviewed By: mdvacca, dmytrorykun Differential Revision: D59859754 fbshipit-source-id: 748efce7f0b8c96001b6ac1a4b457b8c9d63fe9c