Skip to content

patch: v2.11.5#379

Merged
panjf2000 merged 1 commit intomasterfrom
dev
Feb 7, 2026
Merged

patch: v2.11.5#379
panjf2000 merged 1 commit intomasterfrom
dev

Conversation

@panjf2000
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings February 4, 2026 12:57
@github-actions github-actions bot added the patch Release patch version label Feb 4, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes the time tracking mechanism in the goroutine pool by converting the now field from atomic.Value to int64 for better performance.

Changes:

  • Changed poolCommon.now field type from atomic.Value to int64 to store Unix nanoseconds
  • Updated all time store operations to use atomic.StoreInt64 with time.Now().UnixNano()
  • Modified the nowTime() method to reconstruct time.Time from stored nanoseconds using atomic.LoadInt64

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.54%. Comparing base (76ddb18) to head (8a24625).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #379      +/-   ##
==========================================
+ Coverage   94.03%   94.54%   +0.50%     
==========================================
  Files          14       14              
  Lines         788      788              
==========================================
+ Hits          741      745       +4     
+ Misses         35       32       -3     
+ Partials       12       11       -1     
Flag Coverage Δ
unittests 94.54% <100.00%> (+0.50%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@trace-andreason
Copy link
Contributor

@panjf2000 would love to get this merged if possible!

@panjf2000 panjf2000 merged commit cadade6 into master Feb 7, 2026
67 of 72 checks passed
@trace-andreason
Copy link
Contributor

@panjf2000 thank you, I appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Release patch version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants