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 because 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::XalanSourceTreeDocumentFragmentAllocator::destroy(xalanc_1_12::XalanSourceTreeDocumentFragment*) #1 0x00007f2fac16b19f xalanc_1_12::StylesheetExecutionContextDefault::returnXResultTreeFrag(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::reset() #7 0x00007f2fac1b6144 xalanc_1_12::XalanTransformer::EnsureReset::~EnsureReset() #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 const&, xalanc_1_12::XSLTInputSource const&, xalanc_1_12::XSLTInputSource const&) #10 0x0000564568809206 xsltMain(int, char**) #11 0x00007f2fa838f493 __libc_start_main The overall Transformation process took "13.2554333" minutes to complete out 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 to the Xalan 1.12 version . Best Regards, Shivam