openpreserve / jhove

File validation and characterisation.
http://jhove.openpreservation.org
Other
171 stars 79 forks source link

[XML] Very long processing of XML output for big XMP content #817

Closed tledoux closed 1 year ago

tledoux commented 1 year ago

When processing images (TIFF or JPEG) containing big amount (7Ko) of XMP data, the processing of the XML output takes more than 5 minutes !!!

Whe processing the same file but outputting in TEXT or JSON, the computing time is in seconds.

The encoding method for XML values goes through the values at least 5 times and uses a StringBuffer !!!