I have a user-written package (600kB), which I load the standard way:
<<MyPack.m
or
Get["MyPack.m"]
When I am connected to the internet, this takes 18 seconds to load; while when I shut down the internet connection at the computer system level, the same executes in 4.5 seconds.
None of
CurrentValue[\$FrontEndSession, "AllowDownloads"] = False;
CurrentValue[\$FrontEnd, "AllowDownloads"] = False;
\$AllowInternet = False;
change this behavior.
Has anyone a suggestion?
(MacOS 10.15.6, Mathematica 13.2)
Thanks!
UPDATE: Using the suggested print statements, I was able to locate the problem: It is the calls to "Compile" which execute much slower when connected to a network.
$Path
that Mathematica tries to search for your package? $\endgroup$