Use conditional in strPtr() to encourage inlining.
This construct is logically equivalent but it seems to make the compiler more likely to inline the function, probably because the compiled code is slightly smaller.
@@ -721,12 +721,7 @@ strPtr(const String *this)
FUNCTION_TEST_PARAM(STRING, this);
FUNCTION_TEST_END();
- char *result = NULL;
-
- if (this != NULL)
- result = this->buffer;
-
- FUNCTION_TEST_RETURN(result);
+ FUNCTION_TEST_RETURN(this == NULL ? NULL : this->buffer);
}
/***********************************************************************************************************************************
