Skip to content

Improve vtkURI performance when processing data URIs

Time to process data URI of this 500Mio glTF file reduced from 90+% (didn't measure in practice, took too much time) to 3% of total processing time of the reader.

Changes include:

  • Remove RemoveDotSegments call when processing a data URI
  • Move validation of data URI content to decoding algorithms (updated doc)
  • Replace standard functions with equivalent functions for better performances in loops thanks to better inlining possibilities
  • Add reserve for output string in RemoveDotSegments

Also fix some typos.

Fixes #19085 (closed)

Backport: release

Edited by Alexy Pellegrini

Merge request reports