Hermes: Can Hermes support RAM bundling ?

Created on 28 Aug 2019  路  2Comments  路  Source: facebook/hermes

Can hermes support RAM bundle format, this can further improve performance when the bundle size is too big (> 10MB)?

Most helpful comment

RAM bundles provide the ability to load only parts of the full JS bundle. When Hermes bytecode is shipped, parsing and compilation have already been completed and the engine can mmap the bytecode file, so we already only load the parts of the bytecode file which are needed for execution.

As such, RAM bundling isn't needed when using the Hermes engine.

The RN docs have been updated to clarify this: https://github.com/facebook/react-native-website/commit/7ddfcc64f6610b2b94d983461ff32bf4a4243d87

All 2 comments

RAM bundles provide the ability to load only parts of the full JS bundle. When Hermes bytecode is shipped, parsing and compilation have already been completed and the engine can mmap the bytecode file, so we already only load the parts of the bytecode file which are needed for execution.

As such, RAM bundling isn't needed when using the Hermes engine.

The RN docs have been updated to clarify this: https://github.com/facebook/react-native-website/commit/7ddfcc64f6610b2b94d983461ff32bf4a4243d87

Thanks @avp
Just one more question: Can we load multiple hermes' bundles in a single VM?
I'm implementing my own code-push solution, where I want to load one base-bundle(vendor dependencies like RN) and multiple module-bundles(module can be a feature-set) on demand, with this I can update individual module-bundles.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swabbass picture swabbass  路  3Comments

WilliamParks picture WilliamParks  路  3Comments

gaodeng picture gaodeng  路  4Comments

benjamingr picture benjamingr  路  6Comments

jacque006 picture jacque006  路  4Comments