Skip to content

Precompile RamAirKite #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
ufechner7 opened this issue Apr 13, 2025 · 4 comments
Closed
1 of 2 tasks

Precompile RamAirKite #131

ufechner7 opened this issue Apr 13, 2025 · 4 comments

Comments

@ufechner7
Copy link
Owner

ufechner7 commented Apr 13, 2025

The initialization of a problem with 6 segments takes on a fast machine about 37 s, even if a system image exists. That is too much. To avoid it:

  • store on problem.bin file per Julia version in the repo
  • call reinit!() using this file in the @compile_workload section of the package

Alternativeley, switch to JLD2 as format for caching the problem. This file format does not depend on the Julia version.

@1-Bart-1
Copy link
Collaborator

Good idea! Maybe we should use git lfs for the bin files? JLD2 might be a lot slower than using serialize, but that should be tested.

@1-Bart-1
Copy link
Collaborator

I would suggest using a 3-segment dynamic kite, and making this the standard settings in settings_ram.yaml. We should also add the KiteModels.jl version to the file name. @ufechner7 do you want to look at this if you have time? Otherwise I will probably do it at some point, but I want to focus on kite control in the coming weeks first.

@ufechner7
Copy link
Owner Author

Works for Julia 1.11, still needs the correct manifest for Julia 1.10.

@ufechner7
Copy link
Owner Author

Fixed for 3 segment kite, for other configurations there is the issue #140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants