Project

General

Profile

Actions

Support Request #11192

closed

Perfomance issues using cDom

Added by hidden almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Workaround Available
Product Issue Numbers:
Affected Products:
Platform:
Windows 10 64bit
Topic:
ADTF::Common
FAQ Links:

Description

Supportanfrage

I have a problem with the ADTF3 cDom implementation

    std::string found_project = "";
    adtf::util::cDOM config_xml;
    adtf::util::cDOMElementRefList siglist;
    adtf::util::cDOMElementRefList dblist;
    adtf::util::cDOMElement* project_node = NULL;
    ::std::cout << "file = " << file.GetPath() << ::std::endl;
    ::std::cout << "sourcefile = " << sourcefile.GetPath() << ::std::endl;
    ::std::cout << "file = " << file.GetName() << ::std::endl;
    ::std::cout << "sourcefile = " << sourcefile.GetName() << ::std::endl;
    LOG_INFO(adtf::util::cString::Format("file= %s", file.GetName()));
    LOG_INFO(adtf::util::cString::Format("sourcefile= %s", sourcefile.GetName()));
    ::std::cout << "_project = " << _project << ::std::endl;

    LOG_INFO("1");
    config_xml.Load("myXml.xml");
    LOG_INFO("2");

In ADTF3 it takes very long to parse or load a xml file.
The line "config_xml.Load("myXml.xml");" take a long time to finish.
Is it a known problem?

Lösung

Yes, cDOM is a very naive and slow implementation, it is included with ADTF3 for backwards compatibility purposes only. We recommend using pugixml (https://pugixml.org) instead.

Actions

Also available in: Atom PDF