metanorma / mn2pdf

Metanorma XML to PDF
3 stars 2 forks source link

Optimization: remove the element `emf` via SAX parser #230

Closed Intelligent2013 closed 10 months ago

Intelligent2013 commented 11 months ago

As titled. Sample document: iso-10303-41.

Java used memory size before: 5416608
Java available memory size before: 1903516000
Preparing...
Input: XML (document.presentation.xml)
Input: XSL (iso.international-standard.xsl)
Output: PDF (.\Result\document.presentation.pdf)

Start SourceXMLDocument
Java used memory size before: 5416608
Java available memory size before: 1903516000
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:3332)
        at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
        at java.lang.StringBuilder.append(StringBuilder.java:142)
Intelligent2013 commented 10 months ago

Done in https://github.com/metanorma/mn2pdf/releases/tag/v1.80.