You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Xinyu Tan (Jira)" <ji...@apache.org> on 2023/02/20 15:34:00 UTC
[jira] [Created] (IOTDB-5562) Change the data type of AutoGuage from long to double in metric module
Xinyu Tan created IOTDB-5562:
--------------------------------
Summary: Change the data type of AutoGuage from long to double in metric module
Key: IOTDB-5562
URL: https://issues.apache.org/jira/browse/IOTDB-5562
Project: Apache IoTDB
Issue Type: Improvement
Reporter: Xinyu Tan
Assignee: Xinyu Tan
The current metric module's AutoGuage type supports long rather than double, but our default metric module class, MicrometerAutoGuage, expects a double data type, so we do a type cast internally for all long values.
Some users expect AutoGuage to support double data type, which not only allows recording decimals, but also potentially reduces type cast twice such as "double->long->double".
After this change, AutoGuage of type long still requires one type cast, but AutoGuage of type double has been reduced from two to zero type casts, resulting in a small positive performance gain.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)