# HG changeset patch # User Olaf Wintermann # Date 1765640827 -3600 # Node ID c1e17411004f508a2b0447dabb9d4d46022a98a2 # Parent ef2f47fc5f0c7f60bf1b3d44ad8c5eb5d33acddd optimize cxJsonCompare in case both value pointers are identical diff -r ef2f47fc5f0c -r c1e17411004f src/json.c --- a/src/json.c Sat Dec 13 16:41:10 2025 +0100 +++ b/src/json.c Sat Dec 13 16:47:07 2025 +0100 @@ -1444,7 +1444,7 @@ } int cxJsonCompare(const CxJsonValue *json, const CxJsonValue *other) { - if (json == NULL && other == NULL) return 0; + if (json == other) return 0; if (json == NULL || other == NULL) return -1; if (json->type != other->type) { if (!cxJsonIsNumber(json)) return -1;