marcom / ViennaRNA.jl

Julia interface to ViennaRNA for RNA structure prediction and analysis
Other
21 stars 1 forks source link

plot_structure_makie is very slow on the first run #5

Closed marcom closed 2 years ago

marcom commented 2 years ago

See discussion here: #4

What i tried:

Adding the following to plot_structure.jl: (adapted from https://github.com/JuliaPlots/Makie.jl/blob/master/src/precompiles.jl )

function _precompile_()
    ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
    plot_structure_makie("(((...)))")
    plot_structure_makie("(((...)))"; sequence="GGGAAACCC")
    return
end
_precompile_()

Unfortunately the first plot seems to take even longer with this precompile approach (53s vs 45s without).

As mentioned in #4 using the GLMakie & WGLMakie backends also didn't yield an improvment.

marcom commented 2 years ago

This issue is now tracked in the PlotRNA.jl repo, closing here.