Add PrecompileTools workload for faster startup#60
Merged
ChrisRackauckas merged 1 commit intoSciML:masterfrom Dec 29, 2025
Merged
Conversation
- Add PrecompileTools.jl as a dependency - Add @setup_workload/@compile_workload block that precompiles: - Algorithm struct instantiations (ode23, ode45, etc.) - buildDEStats function with typical MATLAB stats dictionaries This precompiles the lightweight Julia parts of the package. The main solve functionality requires MATLAB to be installed and cannot be precompiled without it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Author
CI Failure AnalysisThe CI failure is not caused by this PR's changes. Looking at recent CI runs, all Downgrade workflow runs have been failing, including:
The failure occurs in the This is a pre-existing CI configuration issue where the test workflow runs without MATLAB being available. The changes in this PR (adding PrecompileTools workload) are sound:
|
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context
This package is a thin wrapper around MATLAB's ODE solvers via MATLAB.jl. Most of the heavy compilation work is done by dependencies (DiffEqBase, ModelingToolkit) which already have their own precompilation workloads.
However, we can still precompile the lightweight Julia parts of this package:
buildDEStatshelper function that processes MATLAB solver statisticsLimitations
The main
solvefunctionality requires MATLAB to be installed and cannot be precompiled without it. The precompilation workload focuses on what can be precompiled without MATLAB being available.Test plan
cc @ChrisRackauckas
🤖 Generated with Claude Code