Commit 19bcb64
authored
precompile package callback (#341)
With this PR:
```
(ChainRulesCore) pkg> precompile
Precompiling project...
1 dependency successfully precompiled in 2 seconds (1 already precompiled)
julia> @time using ChainRulesCore
0.082255 seconds (157.13 k allocations: 9.737 MiB, 5.59% compilation time)
```
Before:
```
julia> @time using ChainRulesCore
0.111551 seconds (443.47 k allocations: 25.618 MiB, 3.87% compilation time)
```
Removing the hook alltogether:
```
julia> @time using ChainRulesCore
0.033357 seconds (36.37 k allocations: 2.399 MiB, 17.75% compilation time)
```
That's still more overhead than I'd like, so we should still discuss
whether we could avoid these hooks, but it does at least improve the current
situation somewhat.
Ref #3401 parent c6402ae commit 19bcb64
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments