Actions
Support Request #11192
closedPerfomance issues using cDom
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.
Updated by hidden almost 4 years ago
- Project changed from Public Support to 11
- Topic set to ADTF::Common
- Customer set to AUDI
Updated by hidden almost 4 years ago
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.
Regards,
Martin
Updated by hidden almost 4 years ago
- Status changed from In Progress to Customer Feedback Required
Updated by hidden almost 4 years ago
- Project changed from 11 to Public Support
- Subject changed from Problem with cDom to Perfomance issues using cDom
- Description updated (diff)
- Status changed from Customer Feedback Required to To Be Closed
- Private changed from Yes to No
- Resolution set to Workaround Available
Actions