I’m trying to profile my code with the @profview command in VScode. After ~1000 seconds of running, this is what the profiling gives me:
What could be the reasons root taking so much longer than all my other processes?
I have a function compare_eigenvals(;kwargs...)
that I defined myself and I just run the code:
@profview @time Λs_model, Λs_RN = compare_eigenvals(;kwargs...)
Scrolling down in the profile graph yields:
So except from the big time loss after root, all of the calculation time is used for the function.
I have ran this multiple times, so I don’t think its a compilation problem. I also get 0.59% gc time and 0.13% compilation time.