Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assess and remove unnecessary usage of
Float32Array
(#6243)
## Summary This PR removes a 4-year-old TODO in the `Bezier` library, keeping `Arrays` and removing mentions of `Float32Arrays`. This is due to `Float32Arrays` having a very specific `WebGL` use case, and generally being slower than regular `Arrays`, especially when they're dynamically re-allocated over and over again as it is the case in the `Bezier` library. Live speed demo: [link](https://jsperf.app/float32array-slowness-test/2) Live demo results: ![image](https://github.com/software-mansion/react-native-reanimated/assets/74246391/7551de0b-b9ab-439e-9853-fee0178253af) ## Test plan not-applicable ## Notes Using `Float32Array` here has no effect on precision, and no measurable speed improvement/degradation was noted on the production-like-conditions tests that I did.
- Loading branch information