[prev in list] [next in list] [prev in thread] [next in thread]
List: kstars-devel
Subject: Re: [Kstars-devel] Binary star data loading accomplished in Branch!
From: Akarsh Simha <akarshsimha () gmail ! com>
Date: 2008-06-02 19:44:02
Message-ID: 20080602193201.GO4636 () PENGUIN
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
> 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=20
> 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
["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