Hello,
The Julia language claims it is a fast language, but in my practice I’m hard to convincing myself of this, and now I meet terrible problem with the speed of julia again, hope someone here can give me some advice.
Let’s say I have a file, mydata.tsv
, with a file size of 2GB, the first 2 columns are string, the other columns are Float.
When I read it in R, I use the data.table::fread
function and it only takes 3 seconds to read data into a dataframe.
Sys.time();df <- fread("mydata.tsv",sep="\t"); Sys.time()
But it takes 180 seconds to do the same job with CSV.jl and DataFrames.jl in julia.
@time df = CSV.read("mydata.tsv", delim = "\t", DataFrame)
So, is there any problem of my julia code? No offense, but as a user I was really disappointed.