szentesb - 2009-08-28

Hello,

I'm trying to use TinyXML 2.5.3 under VxWorks for parsing XML files, but the performace compared to windows is very weak in my case, for which I don't know the reason.
I've created a rather small test:
    TiXmlDocument doc("d:/test.xml");
    printf("Loading test.xml\n");
    bool ok = doc.LoadFile();
    if(ok)
    {
        printf("Loaded.\n");
    }

test.xml is an XML file of ~600kB.
If this code is run on Windows (compiled Borland C++ or MinGW GCC compiler), the whole process is finished in some milliseconds, but under VxWorks 5.4 with Tornado 2.0.2 compiler it takes ~15seconds. The parsing is successfull, but it's very-very slow..

I've checked, all this long processing time is happening, when I call the TiXmlNode::Parse from the TiXmlDocument::Parse function (tinyxmlparser.cpp)

I've checked, the TiXmlElement::Parse method for the number of calls, it happened the same times under Windows and VxWorks.

Do you have any idea what the problem can be, or have any of you seen such behaviour?

Thanks,
Bela