Unnecessary memory allocation in TStringHelper.IsNullOrWhiteSpace

Summary

The SysUtils.TStringHelper.IsNullOrWhiteSpace() function, due to the call to Trim(), can lead to memory allocation, which is not necessary at all.

Compiler version:

3.3.1-10956-gbeb97b81

Possible fixes

It seems that the proposed version is spared from this.

IsNullOrWhiteSpace.patch

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information