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

Which should I use `__init__` or `deps/build.jl`?

$
0
0

I’m writing a module which has a CSV file as data, and should be expanded and processed to DataFrame and saved as JLD2 file. However the data size of the generated JLD2 file is much larger than original CSV file, I want to generate them when the module is going to be used.

I came up with two ways:

  • Write the process in the __init__ function of the module
  • Write the process in deps/build.jl

Which (or another way) should I choose?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles