Ticket #3961 (closed defect: fixed)
Performance problem when serializing huge color tables / metadata to VRT/PAM
| Reported by: | rouault | Owned by: | rouault |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.8.1 |
| Component: | GDAL_Raster | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | epifanio, rprinceley |
Description
A loop with CPLCreateXMLNode( psParent, CXT_Element, "text" ) has quadratic performance due to CPLCreateXMLNode() iterating over the children to find the last one. The solution is to maintain the last child and add the new node to it directly.
Change History
Note: See
TracTickets for help on using
tickets.
