#24 Loading database too slow

open
nobody
None
5
2003-11-28
2003-11-28
Tyler Akins
No

Is there a way that this can be sped up? Your drawing
routines are nice and fast, but why does it take so
long to load the database into memory?

If there is a delay opening each record, perhaps you
could put 10 items in one record?

Discussion

  • Jochen Hoenicke

    Jochen Hoenicke - 2003-11-28

    Logged In: YES
    user_id=18252

    Loading of the database does the following:
    1. allocate a single block of memory where coordinate/
    magnitude info is stored (this way we don't need to iterate the
    records later which would take too long)
    2. convert polar coordinates to cartesian coordinates (involving
    sin/cos).

    The plan is to organise the location data in a QuadTree
    structure, with more than one item per record. This way we
    don't need to iterate over all stars just to check if they are in the
    currently visible part. I still have to figure out if the QuadTree
    should store the coords/mag info.

     
  • Tyler Akins

    Tyler Akins - 2003-11-28

    Logged In: YES
    user_id=73968

    Sounds like you already had plans to improve this. :-)
    Great! I anxiously await the results.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks