mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #1554] [MERGED] Use clock_gettime instead of gettimeofday #2042
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2042
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1554
Author: @ggtakec
Created: 2/7/2021
Status: ✅ Merged
Merged: 2/8/2021
Merged by: @gaul
Base:
master← Head:use_clock_gettime📝 Commits (1)
6302db5Use clock_gettime instead of gettimeofday📊 Changes
1 file changed (+16 additions, -4 deletions)
View changed files
📝
src/s3fs_logger.h(+16 -4)📄 Description
Relevant Issue (if applicable)
#1540
Details
Using gettimeofday for log output will reduce performance.
It will be especially clear when the debug level produces a lot of output, such as INFO.
Instead, call clock_gettime with CLOCK_MONOTONIC_COARSE.
In some cases such as OSX, CLOCK_MONOTONIC_COARSE is not supported. In that case, use CLOCK_MONOTONIC.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.