Git Product home page Git Product logo

Comments (7)

fieker avatar fieker commented on July 20, 2024

from hecke.jl.

hongyi-zhao avatar hongyi-zhao commented on July 20, 2024

@fieker Thank you for your tips and it works. But what should I do if I want several or all packages to work in this way?

from hecke.jl.

fieker avatar fieker commented on July 20, 2024

from hecke.jl.

thofma avatar thofma commented on July 20, 2024

One could use https://julialang.github.io/PackageCompiler.jl/stable/sysimages.html to do it for as many packages one wants. There is not much we can do on our part.

from hecke.jl.

hongyi-zhao avatar hongyi-zhao commented on July 20, 2024

@fieker

put it into Hecke/system/precompile.jl

There are currently some code snippets in this file, but they seem to have nothing to do with the issues discussed here. More specifically, the default content in this file seems to be intended for the purpose of completing some tests.

from hecke.jl.

hongyi-zhao avatar hongyi-zhao commented on July 20, 2024

@thofma

One could use https://julialang.github.io/PackageCompiler.jl/stable/sysimages.html to do it for as many packages one wants. There is not much we can do on our part.

So, the question becomes this:

  1. For several packages, should I compile a separate .so sysimage for each of them, or should I combine them into a huge one?
  2. If I've already compiled some sysimages, then is it possible to combine them into the newly created sysimage without having to compile them from scratch?

from hecke.jl.

fieker avatar fieker commented on July 20, 2024

As far as I understand this at this point the answer is: you'll have to produce a single image containing all packages you're interested in. Reason: loading a second package can easily force a change in the bahviour of an older package (think itroducing a special case for a generic function e.g.) thus the sysimage can only be done this way.

Julia is, I think, working on allowing a more incremental approach, but for now, my very limited understanding implies

  • you'll have to do a single image containing all you want
  • do this, mostly from scratch, in one go

from hecke.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.