[Kstars-devel] Re: kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Thu May 20 09:43:35 CEST 2004


Hello,

> I have added to the SkyPoint class two private members which 
> are the ecliptic longitude and latitude. I have also added 
> functions to retrieve these values and to set them.

I am a little concerned about this.  KStars stores tens of thousands of 
SkyPoints in memory, so adding members to this class can really impact 
heavily on the memory usage.  Are the Ecliptic coordinates used often 
enough to justify the addition?

As a test, I used 'top' to estimate the memory usage both before and 
after Pablo's commit:

before:  Virt: 135  Res: 122  Shr: 30
after:   Virt: 145  Res: 132  Shr: 30

What do you guys think?  Is it worth 10 MB of memory usage?  

regards,
Jason
-- 
KStars: A KDE Planetarium
http://edu.kde.org/kstars


More information about the Kstars-devel mailing list