Giter Club home page Giter Club logo

Comments (3)

sloede avatar sloede commented on June 11, 2024

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.

KristofferC avatar KristofferC commented on June 11, 2024

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.

sloede avatar sloede commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.