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>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main(int argc, char ** argv)
{
if ( argc != 2 ) return -1;
ulClock c;
string s;
// open the specified file for reading
ifstream file_in( argv[1] );
if ( !file_in.is_open() ) {
cerr<<"can not open
file: "<<argv[1]<<endl;
exit(-1);
}
c.update();
cerr<<c.getAbsTime()<<endl;
while (!file_in.eof())
{
file_in>>s;
cout<<s;
}
c.update();
cerr<<c.getAbsTime()<<endl;
return 0;
}and run like this: ./tmp basic.dat > tmp.txt the result is : 0.000341485 5.60082 and I also compile it by mingw32 (gcc version is 3.2.3) the result is: 9.59169e-005 0.807395 very fast. My computer is P4 2.6 under win_xp. -------------------------- Matt from China. _________________________________________________________ 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
