Andy Ross wrote:

The apt.dat.gz file is big, certainly.  It has 165976 lines, only
91813 of which are actually used by the parser*.

 * So in principle you can get another 2x speedup by pruning the file
   from the raw X-Plane version.  Attached is a little perl script that
   does that.  Untested.  Use it as someting like:
      zcat apt.dat.gz | fgapt.pl > apt.dat
   Whether this is worth using a modified file is questionable.
   Again, on my machine it would save about 2 seconds.  Shrug.

I had that on the back of my mind for some time now and decided to implement it today. Lines that are not needed for FlightGear are not tokenized anymore which should provide at least some speedup again.

I've also changed the if tests from strings comparison to int comparisons to speed it up just slightly more.

Erik

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to