reducing-processing-time.dita 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd" >
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <topic id="reducing-processing-time" xml:lang="en-US">
  5. <title>Reducing processing time</title>
  6. <shortdesc>Several configuration changes can significantly reduce DITA-OT processing time.</shortdesc>
  7. <body>
  8. <section>
  9. <title>Disable debug attribute generation</title>
  10. <p>The <parmname>generate-debug-attributes</parmname> parameter determines whether debugging attributes are
  11. generated in the temporary files. By changing the value to <codeph>false</codeph>, DITA-OT will no longer
  12. generate the <xmlatt>xtrf</xmlatt> and <xmlatt>xtrc</xmlatt> debug attributes. This will make it more
  13. difficult to track down the source file location from which a given issue may have originated, but it will
  14. reduce the size of the temporary files. As a result, XML parsing will take less time and overall processing
  15. time will be reduced.</p>
  16. </section>
  17. <section>
  18. <title>Use a fast disk for the temporary directory</title>
  19. <p>DITA-OT keeps topic and map files as separate files and processes each file multiple times during
  20. preprocessing. Thus reading from disk, parsing XML, serializing XML, and writing to disk makes processing
  21. quite I/O intensive. Use either an
  22. <xref href="http://en.wikipedia.org/wiki/Solid-state_drive" scope="external" format="html">SSD</xref> or a
  23. <xref href="http://en.wikipedia.org/wiki/RAM_drive" scope="external" format="html">RAM disk</xref> for
  24. temporary files, and never use a temporary directory that is not located on the same machine as where the
  25. processing takes place.</p>
  26. </section>
  27. <section>
  28. <title>Reuse the JVM instance</title>
  29. <p>For all but extremely large source sets, the JVM will not have enough time to warm-up. By reusing the same
  30. JVM instance, the first few DITA-OT conversions will be “normal”, but when the JIT starts to kick in, the
  31. performance increase may be 2-10 fold. This is especially noticeable with smaller source sets, as much of
  32. the DITA-OT processing is I/O intensive.</p>
  33. </section>
  34. <section>
  35. <title>Use the latest Java version</title>
  36. <p>DITA-OT 2.0 to 2.3 require Java 7, and DITA-OT 2.4 and newer require Java 8. However, using a newer version
  37. of Java can further reduce processing time.</p>
  38. </section>
  39. </body>
  40. <related-links>
  41. <linklist>
  42. <title>Collected links</title>
  43. <link href="http://en.wikipedia.org/wiki/Solid-state_drive" scope="external" format="html">
  44. <linktext>SSD</linktext>
  45. </link>
  46. <link href="http://en.wikipedia.org/wiki/RAM_drive" scope="external" format="html">
  47. <linktext>RAM disk</linktext>
  48. </link>
  49. </linklist>
  50. </related-links>
  51. </topic>