[Kstars-devel] Binary star data loading accomplished in Branch!
Akarsh Simha
akarshsimha at gmail.com
Mon Jun 2 21:32:02 CEST 2008
> If you are reading from two files at the same time, you are causing
> a bunch of seeks to occur as the disk head has to ping pong between
> the two files on disk. If one of the files is small, it is much more
> efficient to read the entire small file first and store it in memory.
> That way the data file can be read sequentially without having to seek
> over to the names file and then back to the data file.
Oh! I didn't consider that. Yes. That makes things clear.
> As a simple test, you could eliminate the reading of names and see what
> effect this has on the time it takes to load the stars.
I'll try this out.
> Also, you don't want to run HTMesh->index() when initializing stars
> because this call is very expensive. We want to use the trixel numbers
> that were stored in the datafile.
Yes. That's a good point too. I should first figure out how the trixel
number stored in the data file compares with that used by HTMesh.
Regards
Akarsh
-------------- 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/a5dd29eb/attachment.pgp
More information about the Kstars-devel
mailing list