LCSB-BioCore / COBREXA.jl

Constraint-Based Reconstruction and EXascale Analysis
https://lcsb-biocore.github.io/COBREXA.jl/
Apache License 2.0
42 stars 8 forks source link

solver precompilation in tests blocks unnecessarily #287

Closed exaexa closed 3 years ago

exaexa commented 3 years ago

JuMP+Tulip JIT takes quite a bit of time (~50 secs here). In the tests, the main worker JITs this in test/base/solver.jl, the other workers start in FVA tests. That wastest 50 seconds because the JIT doesn't run in parallel althought it could.

Proposed solution

kick the solver tests off with something parallel, so that the precompilation is also parallel.

Outcome

hopefully -60s test time, much less skewed test timing.

laurentheirendt commented 3 years ago

maybe we can add Tulip to the base image?

exaexa commented 3 years ago

not sure if that helps, I've got tulip installed and precompiled and using it first time in jump in a "fresh" julia process takes ~60s nevertheless

stelmo commented 3 years ago

Can confirm, it takes forever the first time you use it

laurentheirendt commented 3 years ago

sure, but in the Docker image, we could freeze the state after using Tulip

exaexa commented 3 years ago

wait, you can transplant a running julia to the testing env?

laurentheirendt commented 3 years ago

let's try ...