Add PrecompileTools.jl#208
Draft
odow wants to merge 1 commit into
Draft
Conversation
Collaborator
Author
|
@jd-lara says
Except this is part of the problem. If the system data is separate from the implementation, then we can't precompile the relevant stuff here. We could use mock components only if they will hit the same methods that will actually be hit when the user runs. |
jd-lara
marked this pull request as draft
July 24, 2026 13:29
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.
Rebased #204
Part of #115
This needs some discussing/direction, because we need to decide what to precompile.
Things we can precompile:
Things we cannot precompile:
solve!which require an optimizer.I think we also need a small-scale system that we can build with some data. What's the best way to do this? Can we include a file that we read in at precompile time?
A downside to the design of a mix of packages is that it's harder to precompile things. It would be trivial if there was a single Sienna.jl where we could build and load an entire test system.
In PowerModels, we do:
We chose two small systems, and we choose to precompile only ACP and DCP, for both OPF and PF. This is a win, but it doesn't help the user if they're doing something more exotic.