|
From: | Paolo Bonzini |
Subject: | Re: [PATCH] (x)memcoll: performance improvement when input is known to be NUL delimited. |
Date: | Mon, 15 Mar 2010 13:42:40 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.3 |
On 03/14/2010 03:15 PM, Bruno Haible wrote:
Here, the calling convention of providing a string with a size, and the size must include the trailing NUL byte, is so unusual that the probability of a mis-use of the API is likely 10% or more.
You can always use assert so that #define NDEBUG would compile the check out.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |