We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9a591b commit 5d6190fCopy full SHA for 5d6190f
src/packagedef.jl
@@ -1653,8 +1653,9 @@ function __init__()
1653
end
1654
1655
1656
+ precache = Preferences.@load_preference("precache_fieldtypes", true)
1657
# Populate field types map cache (only on main process, not on workers)
- if __bpart__ && (isnothing(distributed_module) || distributed_module.myid() == 1)
1658
+ if precache && __bpart__ && (isnothing(distributed_module) || distributed_module.myid() == 1)
1659
Threads.@spawn :default foreach_subtype(Any) do @nospecialize type
1660
# Populating this cache can be time consuming (eg, 30s on an
1661
# i7-7700HQ) so do this incrementally and yield() to the scheduler
0 commit comments