This could avoid taking a lock in CalibratedClocks.GetTime.
Contributor guide
Tech stack
go
Domain
backendperformance
Issue type
performance
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
4
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
1-2 days
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
stale
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
clear
Prerequisites
Go programmingconcurrencygVisor codebase
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
25
Research direction
Investigate the CalibratedClocks.GetTime function in the sentry/time package. Understand the current mutex based locking and design a sequence number read lock to avoid contention. Ensure memory ordering guarantees are met. The main file is likely pkg/sentry/time/calibrated clock.go.