ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
65 stars 38 forks source link

xml2rfc is slow to process prepped documents #1013

Closed kesara closed 1 year ago

kesara commented 1 year ago

Describe the issue

root@8bc787553164:~/xml2rfc# xml2rfc --version
xml2rfc 3.17.4
root@8bc787553164:~/xml2rfc# time xml2rfc rfc9427.xml
 Created file rfc9427.txt

real    0m48.097s
user    0m47.891s
sys 0m0.206s
root@8bc787553164:~/xml2rfc# time xml2rfc rfc9427.notprepped.xml
 Created file rfc9427.notprepped.txt

real    0m0.884s
user    0m0.693s
sys 0m0.189s

This is because text, HTML and PDF generation processes rerun the v2v3 conversion and preptool processes again on prepped documents.

Code of Conduct