Comments (3)
That would be a great feature to have! It slightly relates to some of the suggestions in #858. One question that was hard for me to answer though, is how to ensure that the correct cached base sysimage is determined based on the Julia flags (and other environmental variables?). I am thinking that things like -O3
or --check-bounds=yes|no
would probably result in different base images.
Also, given that there is (likely) a myriad of different combinations, do we only want to keep the latest cache image or one for each possible feature set? Also, how to prevent race conditions during generation?
from packagecompiler.jl.
I think it is fine for code in Base to be compiled with the default arguments. The app/library specific code will then be compiled with whatever specific options are given.
The CPU-target has to be correct though I think.
Also, how to prevent race conditions during generation?
We could have a PID lock for the sysimage being generated.
from packagecompiler.jl.
I think it is fine for code in Base to be compiled with the default arguments
OK, this makes sense.
We could have a PID lock for the sysimage being generated.
Sounds good.
In general, if we add such a caching feature, it would be good if we can add functions to also remove the cached file and/or force the regeneration of a new file upon next use.
from packagecompiler.jl.
Related Issues (20)
- UndefRefError in docker image HOT 2
- IOError: symlink("libLLVM-14jl.so", "App/lib/julia/libLLVM.so"): operation not supported on socket (ENOTSUP)
- Can't the JULIA_DEPOT_PATH be changed in apps?
- Package Compiler Fails on Julia v1.10 HOT 1
- Error in PackageCompiler.jl with Test.jl and `filter_stdlibs = true` in Julia 1.10 HOT 2
- Need to update Windows compilers for 1.11
- Sysimage documentation bug
- Type piracy on `Base` fails incremental sysimage builds (1.9 -> 1.10 regression) HOT 4
- Missing libcholmod when building apps with `filter_stdlibs = false` after updating PackageCompiler HOT 5
- Sysimage with `Plots.jl` breaks loading some shared libraries in R (via `RCall.jl`) HOT 1
- Compiled app errors when loading depencies HOT 2
- Building "examples/MyLib" fails on macOS HOT 1
- Error when creating a c-callable library on MacOS HOT 1
- Dependency analyzer seems to skip packages that are `import .PKGNAME` HOT 3
- Error occurred while compiling code that includes `using LoopVectorization` HOT 4
- Plans for the "true" Profile-Guided Optimization (PGO) in the compiler
- Zarr and DimensionalData in same package will not compile on macOS HOT 2
- Build from temporary depot (so that relocatability issues are locally reproducible)
- Failed consistency check when trying to relocate compiled app (MacOS) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packagecompiler.jl.