Hi,
I'm parsing some log files of a few million lines.
I'm pulling out two or three numeric values and a code into an array of a
custom type.
a simple approach would be something like
for line in eachline(myInFile)
push!(myArray, myType(Int64(line[1:4]), Int64(line[5:8]), line[15:16] )end
What would be a more idiomatic performant approach?
pre initializing myArray and then checking the length each time to see whether
to expand by a another 20%?
Obviously I'll benchmark it but I was hoping for a push in the right direction.
Many thanks.John.