Minor perf tweak for _SPI_strdup(): if we're going to call strlen()

Neil Conway <neilc@samurai.com>

Commit: 25b7583f67136e522b502ee2ad32ae630e521439
Author: Neil Conway <neilc@samurai.com>
Date: 2008-01-12T10:38:32Z
Releases: 8.3.0
Minor perf tweak for _SPI_strdup(): if we're going to call strlen()
anyway, it is faster to memcpy() than to strcpy().

Files

PathChange+/−
src/backend/utils/adt/xml.c modified +4 −3