Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

loading time #27

Open
tlienart opened this issue Jul 29, 2017 · 3 comments
Open

loading time #27

tlienart opened this issue Jul 29, 2017 · 3 comments

Comments

@tlienart
Copy link
Collaborator

tlienart commented Jul 29, 2017

due to dependencies, loading time is quite slow (several seconds). Would be good to check how to strip down dependencies so that only the strict minimum is loaded in order to speed up loading.

@tlienart
Copy link
Collaborator Author

tlienart commented Jul 30, 2017

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.

@tlienart
Copy link
Collaborator Author

Removing dependencies

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

@tlienart
Copy link
Collaborator Author

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 compile time of using ApproxFun is almost 10x slower JuliaLang/julia#21173

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

No branches or pull requests

1 participant