[Kstars-devel] [PATCH] Support of non-western constellations

Akarsh Simha akarshsimha at gmail.com
Wed Oct 15 18:41:22 CEST 2008


Hi James,

> Originally we looked up each Bayer name by combing through all the stars 
> over and over again which was breathtakingly slow, so I created a hash 
> of Bayer names that was just used for initializing the constellations.  
> Perhaps we would want to play the same trick with the HD index and 
> create a hash keyed on the HD index for the first 50,000 stars.  We 
> could even bail out early by hard coding the dimmest constellation star 
> and stop creating the hash once that star is reached which would save 
> some space.

All stars that are static have entries in a HD Hash
(StarComponent::m_HDIndex or something and
DeepStarComponent::m_CatalogIndex), and this static list goes down to
magnitude 8.0, so I suppose that all the stars that will be part of
constellations will have entries in the HD hashes.

A HD Hash for 100000 stars should take up about 800kB, so it shouldn't
matter much as far as memory usage is concerned, IIUC.

Regards
Akarsh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20081015/9e01573e/attachment.sig 


More information about the Kstars-devel mailing list