• Philipp A. Hartmann's avatar
    GenericValue: improve copying performance · 2aab7920
    Philipp A. Hartmann authored
    The GenericValue "copy" constructor (with Allocator) uses a temporary
    GenericDocument object to perform the deep copying with the provided
    allocator.  This leads to the temporary allocation of the `Stack`
    memory, even in case of shallow values (numbers, etc.).
    
    This patch improves the performance of this operation by only resorting
    the the SAX Handler implementation in case of Array or Object values.
    2aab7920
document.h 81.8 KB