diff --git a/docs/basic/impactonappmemory.md b/docs/basic/impactonappmemory.md index 15d5cd1c9..f6f3abe54 100644 --- a/docs/basic/impactonappmemory.md +++ b/docs/basic/impactonappmemory.md @@ -104,5 +104,11 @@ ### 旗舰版 -- 新增堆内存大约为 `{MethodBridge.cpp大小} * 0.1` + 0.7M(指令优化模块内存) + `1.2M * {执行过解释代码的线程数}` + `{热更新程序集大小} * 3` + `{AOT程序集总大小+DHE程序集总大小} * 0.12` - `{所有程序集大小} * 0.2` +- 新增堆内存大约为 `{MethodBridge.cpp大小} * 0.1` + 0.7M(指令优化模块内存) + `1.2M * {执行过解释代码的线程数}` + `{热更新程序集大小} * 3(存疑,感觉明显高估)` + `{AOT程序集总大小+DHE程序集总大小} * 0.12` - `{所有程序集大小} * 0.2` - **增加**代码段内存约为 `{DHE程序集大小} * 0.86` + `{MethodBridge.cpp大小} * 0.3` + +:::warning + +由于示例项目规模不大,测试结果跟真实项目未必相符, `{热更新程序集大小} * 3` 这部分内存明显高估,请以实际项目为准。 + +::: \ No newline at end of file diff --git a/i18n/en/docusaurus-plugin-content-docs/current/basic/impactonappmemory.md b/i18n/en/docusaurus-plugin-content-docs/current/basic/impactonappmemory.md index 11a6e9797..744bb6cb0 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/basic/impactonappmemory.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/basic/impactonappmemory.md @@ -106,3 +106,9 @@ Generally speaking, the binary code will be reduced after accessing the professi - The newly added heap memory is approximately `{MethodBridge.cpp size} * 0.1` + 0.7M (instruction optimization module memory) + `1.2M * {number of threads that have executed interpreted code}` + `{hot update assembly size} * 3` + `{total size of AOT assemblies + total size of DHE assemblies} * 0.12` - `{size of all assemblies} * 0.2` - **Increase** Code segment memory to approximately `{DHE assembly size} * 0.86` + `{MethodBridge.cpp size} * 0.3` + +:::warning + +Since the sample project is small, the test results may not be consistent with the actual project. `{hot update assembly size} * 3` This part of memory is obviously overestimated. Please refer to the actual project. + +:::