Can hermes support RAM bundle format, this can further improve performance when the bundle size is too big (> 10MB)?
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.
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
mmapthe 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