-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tamagui setup #3
Comments
Missed this reply earlier but I’ll take a look. Tamagui in general will be a bit slower on micro benchmarks without the compiler because it supports a lot of things and also normalizes style properties. But with the compiler on it will be faster. But it should still be very close to most libraries in our testing including nativewind 4 and restyle so something is off maybe just the specific case. Also it should definitely be faster with Stack |
Have a branch with a variety of changes that improves things, also found that our enabling of I also tested using the experimental There's like 2-3 more smaller things I can optimize, but the main thing that makes Tama slower is that it expands out things so it can do its fancy variant "order important" merging that imo is really powerful and nice and almost necessary for web. But it requires we "expand" things. So The optimizing compiler gets rid of most the cost though, but I need to figure out why its not working on this repo. Just spend 30m looking at this but I'll come back this weekend or soon. Thanks for setting up some better benchmarks though. |
Appreciate your acknowledgment of the updated |
In general doing the
styled(ReactNativeView)
will be much slower than doing this:Or you can import View from tamagui. This is what the docs recommend. Of course also enabling the optimizing compiler would speed things up a lot more but don't need that mentioned.
I can probably make a case where tamagui recognizes the default RN View and optimizes it a bit more as well, I'll do that in an upcoming release, but I think just the change above is fair.
The text was updated successfully, but these errors were encountered: