Hello,
As a first step I did the following
1) I moved the definitions at one place at the starting of the program.
Originally I had:
for (i=0; i<MAX_NUM_SERVICE_PROFILE_PER_IMPI ; i++){
DOMElement* ServProElem = doc->createElement(X("ServiceProfile"));
I changed it to look something like this:
DOMElement* ServProElem;
....
...
for (i=0; i<MAX_NUM_SERVICE_PROFILE_PER_IMPI ; i++){
ServProElem = doc->createElement(X("ServiceProfile"));
This increased the performance quite a bit. Normally the XML document generation
took 20 seconds now it took 10 seconds. (The XML document created is about 11
MB)
2) Secondly as suggested by David I created const objects and used them in my
code
const XStr strServiceProfile("ServiceProfile");
...
for (i=0; i<MAX_NUM_SERVICE_PROFILE_PER_IMPI ; i++){
ServProElem = doc->createElement(strServiceProfile.unicodeForm());
This also increased the performance.
I have yet to try other possibilities. Yet if any of you has some more
suggestions please let me know.
Regards
Alhad Wakankar
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]