diff --git a/src/Infrastructure/VM/src/ESMCI_VM.C b/src/Infrastructure/VM/src/ESMCI_VM.C index db32a1532f..e609585189 100644 --- a/src/Infrastructure/VM/src/ESMCI_VM.C +++ b/src/Infrastructure/VM/src/ESMCI_VM.C @@ -140,6 +140,10 @@ static bool esmfFinalized = false; #undef ESMC_METHOD #define ESMC_METHOD "ESMCI::VMKeyCompare()" static bool VMKeyCompare(unsigned char *vmKey1, unsigned char *vmKey2){ + if (vmKey1==vmKey2) return true; // quick return for identical pointers +#if 1 + return std::memcmp(vmKey1, vmKey2, vmKeyWidth) == 0; +#else int i; for (i=0; i