Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

How to speed up loading libraries

$
0
0

Hello,
I’m starting off in Julia and I want to write a program to use a couple of Python libraries that I have. I have a script that I run non-interactively (I use emacs for dev) and it looks like this

cat test1.jl
@time using PyCall: pyimport
@time using DataFrames

and running it

julia test1.jl
3.237148 seconds (3.49 M allocations: 172.424 MiB, 1.63% gc time)
3.796700 seconds (3.47 M allocations: 183.872 MiB, 0.64% gc time)

So every time I run it, I have to wait 7-8 seconds before it runs any of the rest of my code. So my question is simple - can I reduce that time? Do I have to precompile it into my own module, or something?

I am using Julia 1.4.2 on Debian 10. I haven’t set up Conda or anything - am just letting Julia sort it out as it seemed I don’t need Conda in Linux (but should I?)

many thanks in advance
Dave

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles