Replies: 2 comments
-
Great topic, |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #3199. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Either i don't understand something obvious or we can significantly improve
useSharedValue
performance by usingnull
as initial value on:react-native-reanimated/src/reanimated2/hook/useSharedValue.ts
Line 11 in b40463c
We assign initial value if it's
null
on the next lines, so currently we do useless call ofmakeMutable(init, oneWayReadsOnly)
(as we discard the result for every call except first one).makeMutable
function seems do pretty heavy stuff which could be easily avoided improving hook performance and memory consumption.Beta Was this translation helpful? Give feedback.
All reactions