Code Monkey home page Code Monkey logo

Comments (3)

tlienart avatar tlienart commented on June 16, 2024

Experiments:

Current machine, full load time

 julia -e 'tic(); using PDMP; toc()'
elapsed time: 7.926201809 seconds

This is outrageous. Chasing the culprit.

In PDMP.jl:

using Compat
using Klara.ess
using ApproxFun

using Polynomials:
        Poly,
        roots,
        polyint,
        polyval
julia -e 'tic(); using Compat; toc()'
elapsed time: 0.047637768 seconds

Negligible

julia -e 'tic(); using Klara.ess; toc()'
elapsed time: 1.290301332 seconds

That's pretty bad

julia -e 'tic(); using ApproxFun; toc()'
elapsed time: 6.580165969 seconds

That's downright awful.

julia -e 'tic(); using Polynomials; toc()'
elapsed time: 0.062788019 seconds

Negligible again.

from pdsampler.jl.

tlienart avatar tlienart commented on June 16, 2024

Removing dependencies

  • removing Klara.ess
  • removing Distributions:Beta
  • removing ApproxFun
julia -e 'tic(); using PDMP; toc()'
elapsed time: 1.567161443 seconds

from pdsampler.jl.

tlienart avatar tlienart commented on June 16, 2024

More informations:

  1. in Julia 0.5.2 it's half that time (changing Readme to reflect that for now recommended to use Julia 0.5.2 as a result)
  2. apparently the problem is partly known as per JuliaLang/julia#21173

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