Optimize checking for equality with ""

Final Release Note

Comparing a value with the empty string constant ("") is slightly faster. [#777 (closed)]

Description

Since one of the most common operations in all M applications is comparing a value for equality with the constant "", check the implementation of this operation and ensure it is as optimal as it can be. If it is not, try to make it optimal as part of this issue.

Note that the potential savings at the application level of any optimization are likely to be finite even if each individual comparison only saves a small number of CPU cycles.

Draft Release Note

If there is an optimization found during examination/implementation of this issue, then the following would be the release note. If none is found, remove the below release note.

Comparing a value with the empty string constant ("") is slightly faster. [#777 (closed)]

Edited by K.S. Bhaskar