Skip to content

Commit

Permalink
更新app内存文档
Browse files Browse the repository at this point in the history
  • Loading branch information
pirunxi committed Dec 30, 2024
1 parent cd011ff commit 904aad1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/basic/impactonappmemory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 这部分内存明显高估,请以实际项目为准。

:::
Original file line number Diff line number Diff line change
Expand Up @@ -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.

:::

0 comments on commit 904aad1

Please sign in to comment.