M2 icon indicating copy to clipboard operation
M2 copied to clipboard

startup shouldn't depend on documentation

Open mahrud opened this issue 1 year ago • 0 comments

The two load times below demonstrate that it takes more than twice as long for M2 to load if package documentation aren't installed. I don't think startup should necessarily load all the databases, at least not until help is called.

mahrud@noether:~/Projects/M2/M2/M2/BUILD/build$ rm -rf usr-dist/x86_64-Linux-Fedora-40/lib64/*
mahrud@noether:~/Projects/M2/M2/M2/BUILD/build$ time ./M2 -e "exit 0"
Macaulay2, version 1.24.05
with packages: Complexes, ConwayPolynomials, Elimination, IntegralClosure,
               InverseSystems, Isomorphism, LLLBases, MinimalPrimes,
               OnlineLookup, PrimaryDecomposition, ReesAlgebra, Saturation,
               TangentCone, Truncations, Varieties

real	0m5.133s
user	0m6.199s
sys	0m0.487s
mahrud@noether:~/Projects/M2/M2/M2/BUILD/build$ cp -r ~/.linuxbrew/opt/macaulay2/lib/Macaulay2/ usr-dist/x86_64-Linux-Fedora-40/lib64/
mahrud@noether:~/Projects/M2/M2/M2/BUILD/build$ time ./M2 -e "exit 0"
Macaulay2, version 1.24.05
with packages: Complexes, ConwayPolynomials, Elimination, IntegralClosure,
               InverseSystems, Isomorphism, LLLBases, MinimalPrimes,
               OnlineLookup, PrimaryDecomposition, ReesAlgebra, Saturation,
               TangentCone, Truncations, Varieties

real	0m2.255s
user	0m2.138s
sys	0m0.382s

mahrud avatar Jun 21 '24 04:06 mahrud