Replies: 2 comments 2 replies
-
|
This actually looks positive for RSD, since you're comparing apples to oranges.
So your benchmarks show that using RSD to render HTML polyfills that also support CSS inheritance etc is still faster than using a library like Tamagui or RN CSS. |
Beta Was this translation helpful? Give feedback.
-
You can't produce a good (or EAA compliant) web app with RN as the starting point.
Yeah that's right. Something else to consider is that the cost of extra JS in the bundle is high for initial load on web. And on mobile, web perf is even more limited - so having RSD for mobile web is a big improvement. There is a lot of underpowered hardware out there for desktop too, outside of the Apple ecosystem. Unfortunately, RN itself is a lot slower at element creation than React + browser even before you add more layers of JS. On the flip side, if RN improves and more RSD polyfills move into native, the native perf should improve over time. But with RNW the perf cost for web is essentially fixed for as long as the RN API diverges from web. There might be some further optimization (build time, React Compiler) we could do here while RSD has to polyfill things.
The problem with this approach is that it's only useful for from-scratch apps, and it prevents a lot of code sharing. We tried this at Meta too, but it didn't really have a good use case. You essentially end up not being able to use existing RN or existing RDOM code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the issue
On android in production I'm getting these results rendering a table. On web it's really fast compared to other options but on react-native it's the opposite story.
Platform: android, Version: 35, Env: production
30 runs of each table variant at size 100 x 12.
Expected behavior
Performance without too much overhead
Steps to reproduce
https://github.com/affectful/bench-repro
yarn android:release
or
yarn ios
Test case
https://github.com/affectful/bench-repro
Additional comments
No response
Beta Was this translation helpful? Give feedback.
All reactions