mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a602891946
Summary: This is minor, but for our use case a SparseArray is going to be faster as long as we have less than 10,000 clipped subviews, and will also use much less memory. Faster because of the boxing, unboxing and hash caching; less memory as it is two arrays instead of the object overhead of the HashMap. Reviewed By: ahmedre Differential Revision: D3704326