[Kstars-devel] Binary star data loading accomplished in Branch!

Akarsh Simha akarshsimha at gmail.com
Mon Jun 2 21:42:16 CEST 2008


Hi James,

> make it go faster?  For example, are you still using explicit 
> StarObject constructors?

I think it will be too much of an effort to avoid the StarObject
constructor, because we will have to allocate QStrings for name,
name2, etc manually, and replace appropriate pointers with them
etc. Otherwise, we will end up duplicating pointers as well, so all
stars will end up with the same strings.

I ran "blank" constructors (commented out all the freads and fseeks
etc) and it came down to 3.18 microseconds per star on average. I
don't think this should be much of an overhead, then. Or am I missing
something?

My next experiment in timing will remove the starnames file. I'll
respond with the results soon.

-- 
Akarsh Simha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20080603/fabc735d/attachment.pgp 


More information about the Kstars-devel mailing list