mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #42808 This is another hot path optimization recommended by Claude Code. I QA'd it with a local osquery perf run. # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. ## Testing - [x] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Enhanced performance of the distributed read endpoint by optimizing lock contention management during jitter table access operations. This change reduces latency and improves system responsiveness when handling distributed read requests, particularly benefiting high-concurrency scenarios. The optimization maintains all existing functionality while providing better performance characteristics for read-heavy workloads. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 line
139 B
Text
1 line
139 B
Text
- Improved performance of distributed read endpoint by reducing mutex contention in shouldUpdate using sync.RWMutex instead of sync.Mutex.
|