-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move out Distributed from the sysimage (#49258)
- Loading branch information
1 parent
4a3a5f8
commit 5851e15
Showing
3 changed files
with
17 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
precompile(Tuple{typeof(Distributed.remotecall),Function,Int,Module,Vararg{Any, 100}}) | ||
precompile(Tuple{typeof(Distributed.procs)}) | ||
precompile(Tuple{typeof(Distributed.finalize_ref), Distributed.Future}) | ||
# This is disabled because it doesn't give much benefit | ||
# and the code in Distributed is poorly typed causing many invalidations | ||
# TODO: Maybe reenable now that Distributed is not in sysimage. | ||
#= | ||
precompile_script *= """ | ||
using Distributed | ||
addprocs(2) | ||
pmap(x->iseven(x) ? 1 : 0, 1:4) | ||
@distributed (+) for i = 1:100 Int(rand(Bool)) end | ||
""" | ||
=# |
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