In C the construct x++ is often used stand-alone to increment x and not use the result. In M, the construct if $increment(x) is used for the same purpose. Allowing a NULL pointer for the ret_value parameter of the ydb_incr_s() function would improve performance in these cases by avoiding the need to convert the result to a string to return it to a caller who does not immediately intend to use the result.
Draft Release Note
As a small optimization for applications that use ydb_incr_s() function to increment a node, but not immediately use the value, ydb_incr_s() accepts a NULL ret_value parameter.
Final Release Note
Description
In C the construct
x++
is often used stand-alone to increment x and not use the result. In M, the constructif $increment(x)
is used for the same purpose. Allowing a NULL pointer for theret_value
parameter of theydb_incr_s()
function would improve performance in these cases by avoiding the need to convert the result to a string to return it to a caller who does not immediately intend to use the result.Draft Release Note
As a small optimization for applications that use
ydb_incr_s()
function to increment a node, but not immediately use the value,ydb_incr_s()
accepts a NULLret_value
parameter.