mongo-c-driver
mongo-c-driver copied to clipboard
Replace custom null check with strlen
strlen is faster than a manual loop and will be optimized away for compile-time strings.
Use less-than rather than equality to preserve the behavior where the user can get the first x characters of a string by setting a shorter length.