The below issue we are facing is with respect to Xalan-c...for which to my knowledge xalan 1.12 is the latest version available.
Could you please assist in providing the link for xalan 2 for c++ if it is available. >From xalan-dev Tue Jul 04 22:06:31 2023 From: Joseph Kesselman <keshlam () alum ! mit ! edu> Date: Tue, 04 Jul 2023 22:06:31 +0000 To: xalan-dev Subject: Re: Performance issue with Xalan 1.12 Message-Id: <DM6PR12MB3212777B9ADAEC790325F8A19E2EA () DM6PR12MB3212 ! namprd12 ! prod ! outlook ! com> X-MARC-Message: https://marc.info/?l=xalan-dev&m=168850835922309 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--_000_DM6PR12MB3212777B9ADAEC790325F8A19E2EADM6PR12MB3212namp_" --_000_DM6PR12MB3212777B9ADAEC790325F8A19E2EADM6PR12MB3212namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Xalan 1 is ancient and unsupported. Try the current release of Xalan 2 and = see if it solves your problem. -- /_ Joe Kesselman (he/him/his) -/ _) My Alexa skill for New Music/New Sounds fans: / https://www.amazon.com/dp/B09WJ3H657/ () Plaintext Ribbon Campaign /\ Stamp out HTML mail! ________________________________ From: shivam sachdev <shivam121...@hotmail.com> Sent: Tuesday, July 4, 2023 3:04:57 AM To: xalan-...@xml.apache.org <xalan-...@xml.apache.org> Subject: Performance issue with Xalan 1.12 Hi All, Could you please help to analyze below issue faced with Xalan 1.12 . We are using xalan 1.12 with xerces 3.2.3 to parse and transform the input = xmls and trying to create .fo files using the said xalan version . Xalan -h Xalan version 1.12.0. Xerces version 3.2.2. In one of the input xmls we have call details records(DET**.xmls) ,we could= see if we have more no of calls details <XCD> (for example 50K or so.) We could see the below stack for significant time during unwinding and beca= use of which overall transformation time consumed is pilling up . Transformation time: 795326 milliseconds please find below snapshot of the stack trace : #0 0x00007f2fac1a10b1 xalanc_1_12::XalanSourceTreeDocumentFragmentAllocato= r::destroy(xalanc_1_12::XalanSourceTreeDocumentFragment*) #1 0x00007f2fac16b19f xalanc_1_12::StylesheetExecutionContextDefault::retu= rnXResultTreeFrag(xalanc_1_12::XResultTreeFrag*) #2 0x00007f2fac1a4959 xalanc_1_12::XResultTreeFrag::dereferenced() #3 0x00007f2fac1b458d xalanc_1_12::XalanDocumentFragmentXNodeSetBaseProxy:= :dereferenced() #4 0x00007f2fac03928b xalanc_1_12::XObjectFactoryDefault::reset() #5 0x00007f2fac1a9778 xalanc_1_12::XSLTEngineImpl::reset() #6 0x00007f2fac16d04f xalanc_1_12::StylesheetExecutionContextDefault::rese= t() #7 0x00007f2fac1b6144 xalanc_1_12::XalanTransformer::EnsureReset::~EnsureR= eset() #8 0x00007f2fac1bb0b3 xalanc_1_12::XalanTransformer::doTransform(xalanc_1_= 12::XalanParsedSource const&, xalanc_1_12::XalanCompiledStylesheet const*, = xalanc_1_12::XSLTInputSource const*, xalanc_1_12::XSLTResultTarget const&) #9 0x000056456880bab7 transform(xalanc_1_12::XalanTransformer&, Params con= st&, xalanc_1_12::XSLTInputSource const&, xalanc_1_12::XSLTInputSource cons= t&) #10 0x0000564568809206 xsltMain(int, char**) #11 0x00007f2fa838f493 __libc_start_main The overall Transformation process took "13.2554333" minutes to complete ou= t of which around "7.33" minutes it has spent in the above stack. Please find attached stack trace(eustackxalan.txt) with interval of 5 secs. ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= --------------------------------------- We also did the same test with Xalan 1.10 with xerces 2.7 Xalan -h Xalan version 1.10.0. Xerces version 2.7.0. Usage: Xalan [options] source stylesheet Source tree parsing time: 0 milliseconds. Stylesheet compilation time: 110 milliseconds. Transformation time: 261920 milliseconds. But the time taken (approx 4.36533333 minutes)was very less as compared to = xalan 1.12. Please find the attached file(eustackxalan_1.10) with stack information for= 1.10 as well and let us know the remedy or fix to mitigate the delay due t= o the Xalan 1.12 version . Best Regards, Shivam --_000_DM6PR12MB3212777B9ADAEC790325F8A19E2EADM6PR12MB3212namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"= > </head> <body> Xalan 1 is ancient and unsupported. Try the current release of Xalan 2 and = see if it solves your problem.<span></span> <div><br> </div> <div id=3D"ms-outlook-mobile-signature" dir=3D"auto"> <div dir=3D"auto">--</div> <div dir=3D"auto"> /_ Joe Kesselman (he/him/his)</div> <div>-/ _) My Alexa skill for New Music/New Sounds fans:</div> <div> / https://www.amazon.com/dp/B09WJ3H657/</div> <div><br> </div> <div>() Plaintext Ribbon Campaign</div> /\ Stamp out HTML mail!</div> <hr style=3D"display:inline-block;width:98%" tabindex=3D"-1"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st= yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> shivam sachdev <sh= ivam121...@hotmail.com><br> <b>Sent:</b> Tuesday, July 4, 2023 3:04:57 AM<br> <b>To:</b> xalan-...@xml.apache.org <xalan-...@xml.apache.org><br> <b>Subject:</b> Performance issue with Xalan 1.12 </font> <div> </div> </div> <style type=3D"text/css" style=3D"display:none"> <!-- p {margin-top:0; margin-bottom:0} --> </style> <div dir=3D"ltr"> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> Hi All,</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> Could you please help to analyze below issue faced with Xal= an 1.12 .</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> We are using xalan 1.12 with xerces 3.2.3 to parse and transform the input = xmls and trying to create .fo files using the said xalan version .</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof x_ContentPasted3" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> Xalan -h <div class=3D"x_ContentPasted3">Xalan version 1.12.0.</div> <div class=3D"x_ContentPasted3">Xerces version 3.2.2.</div> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> In one of the input xmls we have call details records(DET**.xmls) ,we could= see if we have more no of calls details <XCD> (for example 50K or so= .)</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> We could see the below stack for significant time during unwinding and beca= use of which overall transformation time consumed is pilling up .</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof x_ContentPasted2" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <span style=3D"background-color:rgb(255,0,0)"><b>Transformation time: 79532= 6 milliseconds</b></span><br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> please find below snapshot of the stack trace :</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof x_ContentPasted0" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <span style=3D"background-color:rgb(255,255,0)">#0 0x00007f2fac1a10b1= xalanc_1_12::XalanSourceTreeDocumentFragmentAllocator::destroy(xalanc_1_12= ::XalanSourceTreeDocumentFragment*)</span> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#1 0x00007f2fac16b19f xalanc_1_12::StylesheetExecutionContextDef= ault::returnXResultTreeFrag(xalanc_1_12::XResultTreeFrag*)</span></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#2 0x00007f2fac1a4959 xalanc_1_12::XResultTreeFrag::dereferenced= ()</span></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#3 0x00007f2fac1b458d xalanc_1_12::XalanDocumentFragmentXNodeSet= BaseProxy::dereferenced()</span></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#4 0x00007f2fac03928b xalanc_1_12::XObjectFactoryDefault::reset(= )</span></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#5 0x00007f2fac1a9778 xalanc_1_12::XSLTEngineImpl::reset()</span= ></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#6 0x00007f2fac16d04f xalanc_1_12::StylesheetExecutionContextDef= ault::reset()</span></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#7 0x00007f2fac1b6144 xalanc_1_12::XalanTransformer::EnsureReset= ::~EnsureReset()</span></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#8 0x00007f2fac1bb0b3 xalanc_1_12::XalanTransformer::doTransform= (xalanc_1_12::XalanParsedSource const&, xalanc_1_12::XalanCompiledStyle= sheet const*, xalanc_1_12::XSLTInputSource const*, xalanc_1_12::XSLTResultTarget const&)</span></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#9 0x000056456880bab7 transform(xalanc_1_12::XalanTransformer&am= p;, Params const&, xalanc_1_12::XSLTInputSource const&, xalanc_1_12= ::XSLTInputSource const&)</span></div> <div class=3D"x_ContentPasted0"><span style=3D"background-color:rgb(255,255= ,0)">#10 0x0000564568809206 xsltMain(int, char**)</span></div> </div> <div class=3D"x_elementToProof x_ContentPasted0" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <span style=3D"background-color:rgb(255,255,0)">#11 0x00007f2fa838f493 __li= bc_start_main</span><br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof x_ContentPasted1" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> The overall Transformation process took "13.2554333" minutes to c= omplete out of which around "7.33" minutes it has spent in the ab= ove stack.</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> Please find attached stack trace(eustackxalan.txt) with interval of 5 secs.= </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> We also did the same test with Xalan 1.10 with xerces 2.7</div> <div class=3D"x_elementToProof x_ContentPasted6" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof x_ContentPasted6" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <span style=3D"background-color:rgb(255,255,0)"> Xalan -h</span> <div class=3D"x_ContentPasted6"><span style=3D"background-color:rgb(255,255= ,0)">Xalan version 1.10.0.</span></div> <div class=3D"x_ContentPasted6"><span style=3D"background-color:rgb(255,255= ,0)">Xerces version 2.7.0.</span></div> <div class=3D"x_ContentPasted6"><span style=3D"background-color:rgb(255,255= ,0)">Usage: Xalan [options] source stylesheet</span></div> <br> </div> <div class=3D"x_elementToProof x_ContentPasted4" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <span style=3D"background-color:rgb(255,255,0)"><br> </span></div> <div class=3D"x_elementToProof x_ContentPasted4" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <span style=3D"background-color:rgb(255,255,0)"><br> </span></div> <div class=3D"x_elementToProof x_ContentPasted4" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <span style=3D"background-color:rgb(255,255,0)">Source tree parsing time: 0= milliseconds.</span></div> <div class=3D"x_elementToProof x_ContentPasted4" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <div class=3D"x_ContentPasted4"><span style=3D"background-color:rgb(255,255= ,0)">Stylesheet compilation time: 110 milliseconds.</span></div> <div class=3D"x_ContentPasted4"><span style=3D"background-color:rgb(255,255= ,0)">Transformation time: 261920 milliseconds.</span></div> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof x_ContentPasted5" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> But the time taken (<span style=3D"background-color:rgb(255,0,0)">approx </= span><span style=3D"background-color:rgb(255,0,0)">4.36533333 minutes</span= >)was very less as compared to xalan 1.12.</div> <div class=3D"x_elementToProof x_ContentPasted5" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> Please find the attached file(eustackxalan_1.10) with stack informatio= n for 1.10 as well and let us know the remedy or fix to mitigate the delay = due to the Xalan 1.12 version .</div> <div class=3D"x_elementToProof x_ContentPasted5" style=3D"font-family:Calib= ri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> Best Regards,</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> Shivam</div> <div class=3D"x_elementToProof" style=3D"font-family:Calibri,Helvetica,sans= -serif; font-size:12pt; color:rgb(0,0,0)"> <br> </div> </div> </body> </html> --_000_DM6PR12MB3212777B9ADAEC790325F8A19E2EADM6PR12MB3212namp_--