JuliaStats / TimeSeries.jl

Time series toolkit for Julia
Other
349 stars 69 forks source link

Really inefficient printing for large TimeArrays #514

Closed ValentinKaisermayer closed 8 months ago

ValentinKaisermayer commented 2 years ago

The main source seems to be this line:

https://github.com/JuliaStats/TimeSeries.jl/blob/0356f4bbad7e7f7b6a8cacde04f0948a65fd4ed4/src/timearray.jl#L297

only a very small subset of strs is used later.

ValentinKaisermayer commented 2 years ago

related #428

ValentinKaisermayer commented 1 year ago

Also if a TimeArray is a field of a struct the whole TimeArray is printed. Is there no summary view?

piechologist commented 10 months ago

Regarding large TimeArrays, I put the following code in my startup.jl:

using TimeSeries
Base.show(io::IO, ::MIME"text/plain", ta::TimeArray) = if length(ta) > 6
    println("Showing only the head of ", length(ta), " rows…")
    show(io, head(ta))
else
    show(io, ta)
end

It's just my personal preference as I usually have many rows but relatively few columns.