Version: unspecified OS: Linux In order to reproduce this bug open sky calendar and click on "update" button. After that application becomes completely irresponsive for almost 20 seconds (on my laptop). This is unacceptably slow. Profiling shows that almost all time is spent in recalculating coordinates of planets. Reproducible: Didn't try
Further examination of profiling data shows that almost all time is spent in KSPlanet::calcEcliptic
It takes like 2-3 seconds on my desktop (Core I7) but that's even slow. If we can't improve the performance by much, but we at least have some progress bar with a cancel button for the user.
I found impossible to speed up the cos() calculations, but the drawing progress is now updated on the UI. This bug is fixed by commit: https://commits.kde.org/kstars/93eda2a0208a485374ed36b536f4232415f64a5d