Hello everyone. I'm new here.
 
I compile the fgfs-0.9.6 under cygwin (gcc version is
3.3.3) successful.( CXXFLAGS='-O2' )
But I find that the speed of io operation is very
slowly.
It takes a long time to read airport files.
then I unzip the basic.dat.gz to basic.dat and write a
program like this:
 
#include <plib/ul.h>
&nbsp;
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
&nbsp;
int main(int argc, char ** argv)
{
&nbsp; if ( argc != 2 ) return -1;
&nbsp; ulClock c;
&nbsp; string s;
&nbsp; // open the specified file for reading
&nbsp;&nbsp;&nbsp; ifstream file_in( argv[1] );
&nbsp;&nbsp;&nbsp; if ( !file_in.is_open() ) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cerr<<"can not open
file: "<<argv[1]<<endl;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(-1);
&nbsp;&nbsp;&nbsp; }
&nbsp;&nbsp;&nbsp; c.update();
&nbsp;&nbsp;&nbsp; cerr<<c.getAbsTime()<<endl;
&nbsp;&nbsp;&nbsp; while (!file_in.eof())
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file_in>>s;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout<<s;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
&nbsp;&nbsp;&nbsp; c.update();
&nbsp;&nbsp;&nbsp; cerr<<c.getAbsTime()<<endl;
&nbsp;&nbsp;&nbsp; return 0;
}

and run like this:
./tmp basic.dat > tmp.txt
&nbsp;
the result is :
0.000341485
5.60082
&nbsp;
and I also compile it by mingw32 (gcc version is
3.2.3)
&nbsp;
the result is:
9.59169e-005
0.807395
very fast.
&nbsp;
My computer is P4 2.6 under win_xp.
&nbsp;
--------------------------
Matt from China.
&nbsp;


_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

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

Reply via email to