Project

General

Profile

Actions

Backport #61475

closed

pacific: common: Use double instead of long double to improve performance

Added by Rixin Luo 11 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Release:
pacific
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

To convert namoseconds to seconds, the precision needs to be 10,
and the precision of double is 15, which is enough to use.
On aarch64, double division uses the div instruction, while long
double uses the gcc buildin _divtf3, which has poor performance.
Therefore, use double instead of long double for better performance.

the parent pull request is https://github.com/ceph/ceph/pull/42082

Actions #2

Updated by Ilya Dryomov 10 months ago

  • Target version deleted (v16.2.13)
Actions #3

Updated by Yuri Weinstein 10 months ago

Actions #4

Updated by Radoslaw Zarzynski 10 months ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF