Hi all,

Is there any way to speed-up module loading in julia when running scripts 
through the command line?
I do 'using ...' for several modules, and it is quite slower than similar 
module importing in R, Python, etc...
Is it the JIT compiler always recompiling the module (and other modules in 
the dependency tree...) each time the script runs?
No way of saving compiled modules (as .pyc files in Python ?)
(I saw discussions about slow parsing of csv files with rhe module 
DataFrames for instance, but not the topic of just loading modules....)

Thanks 

Jose

################################

(this code runs in and AMD 4-core, A8-3850 APU, in a 8-core it takes about 
75% of the times reported below, still slow...)

C:\Users\j...>julia timeLoading.jl
start time: 0.0
using DataFrames... slow loading...
load time: 12.457000017166138 secs
using PyPlot... slow loading...
INFO: Loading help data...
load time: 13.289999961853027 secs
using Winston... slow loading...
load time: 6.801000118255615 secs

the script timeLoading.jl is below:

t1=time()
println("start time: 0")
println("using DataFrames... slow loading...")
using DataFrames
t2=time()
println("load time: ",t2-t1," secs")
println("using PyPlot... slow loading...")
using PyPlot
t3=time()
println("load time: ",t3-t2," secs")
println("using Winston... slow loading...")
using Winston
t4=time()
println("load time: ",t4-t3," secs")

Reply via email to