Bug 267101 - Sky calendar update is awesomely slow
Summary: Sky calendar update is awesomely slow
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Akarsh Simha
URL:
Keywords:
Depends on:
Blocks: 267102
  Show dependency treegraph
 
Reported: 2011-02-24 22:00 UTC by Alexey Khudiakov
Modified: 2017-08-09 19:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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