Switch to Hermes for JS engine #794
gmaclennan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hermes is an alternative JavaScript engine for React Native. Currently we use V8 (the default for React Native used to be JSC, but it is switching to Hermes). React Native allows switching of JS engines fairly easily.
Hermes will theoretically improve performance: it reduces the APK size by about 20Mb, memory usage should go down by 50Mb, and the initial load should be about twice as fast. This would be beneficial for low-end devices such as Android Go.
The one limitation right now is lack of support for
Intl
(which is used byreact-intl
for translations) but that could be solved by Intl Polyfills. Polyfills add to APK size and memory usage, but overall switching to Hermes would be beneficial.It would be good to profile the app before a switch, so we could measure the gain.
Beta Was this translation helpful? Give feedback.
All reactions