-
Basically wondering how much of a difference (if any statistically measurable amount exists that is) would there be if forge compiles from a dead cold start vs a pre-warmed state. Pre warming would be compiling something like pragma solidity ^0.8.0;contract dummy{}" for Is there a potential worthwhile gain to warrant exploring this? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
WDYM pre-warmed state? There's caching in the compiler already, which saves some time. Calling it N times doesn't really do much. We also want to add forking caching to disk when pinned against a block, to avoid re-making network requests in forked tests. |
Beta Was this translation helpful? Give feedback.
-
So forge will support using an external store for cache persistence, e.g. redis (if you wanted to)? |
Beta Was this translation helpful? Give feedback.
-
No, just disk cache 🙂 |
Beta Was this translation helpful? Give feedback.
-
Could do anything really but let's just go with disk cache, keyed by pinned block like hardhat |
Beta Was this translation helpful? Give feedback.
WDYM pre-warmed state? There's caching in the compiler already, which saves some time. Calling it N times doesn't really do much. We also want to add forking caching to disk when pinned against a block, to avoid re-making network requests in forked tests.