YottaDB / YDB

Mirrored from https://gitlab.com/YottaDB/DB/YDB
Other
76 stars 37 forks source link

Allow NULL ret_value in ydb_incr_s() #183

Open ksbhaskar opened 6 years ago

ksbhaskar commented 6 years ago

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 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.