提交 d24ce080 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Cache optimization: modules are not duplicated anymore in the cache

The idea is that even when the key changes, the resulting code and compiled module can remain the same. We avoid this by keeping a hash of the C code (as well as of the compilation options) and when this hash matches that of an existing module, we re-use this module instead of having two different modules doing the same thing. Two improvements should be made to the current implementation: 1. Currently a module is still compiled before we detect that it is duplicated, while we should avoid this compilation step. 2. It may be the case that different code or compilation options actually lead to the exact same compiled module. It would be nice to be able to detect this situation as well.
上级 a1d395b1
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论