[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kstars-devel
Subject:    Re: [Kstars-devel] [PATCH] Support of non-western constellations
From:       Akarsh Simha <akarshsimha () gmail ! com>
Date:       2008-10-15 16:53:22
Message-ID: 20081015164122.GT4960 () PENGUIN
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["signature.asc" (application/pgp-signature)]

_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic