Bug 267101

Summary: Sky calendar update is awesomely slow
Product: [Applications] kstars Reporter: Alexey Khudiakov <alexey.skladnoy>
Component: generalAssignee: Akarsh Simha <akarsh.simha>
Status: RESOLVED FIXED    
Severity: wishlist CC: alexey.skladnoy, csaba.kertesz, mutlaqja
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 267102    

Description Alexey Khudiakov 2011-02-24 22:00:36 UTC
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
Comment 1 Alexey Khudiakov 2011-02-24 22:32:53 UTC
Further examination of profiling data shows that almost all time is spent in KSPlanet::calcEcliptic
Comment 2 Jasem Mutlaq 2015-01-27 21:59:23 UTC
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.
Comment 3 Csaba Kertész 2017-08-09 19:56:43 UTC
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