-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
newinterp: add external cache mode (#54074)
When working on debugging inference behavior or performance tuning, having direct access to inspect the global cache can be really handy. Right now, `@newinterp` utilizes the `Core.Compiler.InternalCodeCache` for its global caching, which doesn’t allow for such inspections. This commit introduces the `@newinterp NewInterp cache_externally=true` option. This enhancement allows `NewInterp` to store `CodeInstance` in an external cache whose type is `IdDict{MethodInstance, CodeInstance}`.
- Loading branch information
Showing
2 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters