Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps:chore - update module github.com/panjf2000/ants/v2 to v2.10.0 #116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 7, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/panjf2000/ants/v2 v2.4.8 -> v2.10.0 age adoption passing confidence

Release Notes

panjf2000/ants (github.com/panjf2000/ants/v2)

v2.10.0: Ants v2.10.0

Compare Source

🛩 Enhancements

  • opt: speed up ReleaseTimeout() for multi-pool (#​332)
  • opt: make ReleaseTimeout() more efficient in waiting workers to exit (#​329)
  • opt: calculate the interval for ReleaseTimeout() based on a default count (#​327)
  • opt: increase the interval of waiting in ReleaseTimeout() (#​325)
  • bug: return error before creating multi pools if lbs is invalid to avoid leaks (#​317)

🐛 Bugfixes

  • bug: fix the last error being missed in ReleaseTimeout() for multi-pool (#​334)
  • bug: alleviate the data race between Release() and Reboot() (#​333)
  • bug: alleviate the data race between Release() and Reboot() (#​330)
  • bug: return error before creating multi pools if lbs is invalid to avoid leaks (#​317)

📚 Documentation

  • doc: add MultiPool & MultiPoolFunc example code and update READMEs. (#​311)

🗃 Misc

  • chore: add new benchmark tests (#​309)

What's Changed

Full Changelog: panjf2000/ants@v2.9.1...v2.10.0

Thanks to all these contributors: @​POABOB, @​akshaynanavare and @​panjf2000 for making this release possible.

v2.9.1

Compare Source

v2.9.0: Ants v2.9.0

Compare Source

🚀 Features

  • feat: add MultiPool and MultiPoolWithFunc (#​305)

🛩 Enhancements

  • opt: fall back to LeastTasks when RoundRobin can't find a worker (#​306)
  • feat: add MultiPool and MultiPoolWithFunc (#​305)
  • refactor: enforce a few minor optimizations in code (#​302)
  • refactor: refine the code in retrieveWorker to make it more readable (#​295)

🐛 Bugfixes

  • bug: return the error from Pool.Submit/PoolWithFunc.Invoke accordingly (#​297)
  • bug: fix the potential goroutine leak after calling Release() (#​287)

📚 Documentation

  • chore: eliminate some useless content (#​303)
  • chore: update READMEs 16771ce
  • chore: add a new use case (#​290)

🗃 Misc

  • chore: eliminate some useless content (#​303)
  • chore: enable more title matchers for auto-labelers of bug and new feature (#​300)
  • chore: enable auto-labeler for PRs of updating semantic version (#​298)
  • chore: clean up some comments and CI yaml (#​296)
  • chore: bump up modules (#​292)

Full Changelog: panjf2000/ants@v2.8.0...v2.9.0

Performance improvement

In version v2.9.0, ants introduces two new pool types: MultiPool and MultiPoolWithFunc from which you will benefit the
performance improvement on the basis of the fine-grained locking that reduces the lock contention.

These two pools are a good fit for the scenario where you have a large number of tasks to submit, and you don't want the single pool to be the bottleneck.

Benchmark testing
goos: darwin
goarch: arm64
pkg: github.com/panjf2000/ants/v2
BenchmarkAntsPool-10                   	       2	 777222500 ns/op	25458216 B/op	 1115895 allocs/op
BenchmarkAntsMultiPool-10              	       2	 667141666 ns/op	23590496 B/op	 1105121 allocs/op
BenchmarkAntsPoolThroughput-10         	       2	 747288979 ns/op	 9266236 B/op	  117693 allocs/op
BenchmarkAntsMultiPoolThroughput-10    	       2	 579771771 ns/op	 4550356 B/op	   66303 allocs/op
BenchmarkParallelAntsPoolThroughput-10         	 1405256	       801.3 ns/op	       9 B/op	       0 allocs/op
BenchmarkParallelAntsMultiPoolThroughput-10    	 2264618	       473.6 ns/op	       9 B/op	       0 allocs/op

Thanks to all these contributors: @​ELchem, @​POABOB and @​panjf2000 for making this release possible.

v2.8.2

Compare Source

v2.8.1

Compare Source

v2.8.0: Ants v2.8.0

Compare Source

🚀 Features

  • feat: add a new API ReleaseTimeout for the default pool (#​285)

🛩 Enhancements

  • feat: add a new API ReleaseTimeout for the default pool (#​285)
  • bug: avoid overflow when computing mid in the binarySearch of the workerStack (#​278)
  • opt: refactor the worker queue for reusability and readability of code (#​270)
  • opt: awake blocking goroutines more precisely in purgeStaleWorkers b32591f
  • opt: use runtime/debug.Stack() to print stack trace of panic 7a56a5c
  • opt: refactor the worker queue for reusability and readability of code 0313eff
  • opt: refine some code b6eaea1

🐛 Bugfixes

  • bug: avoid overflow when computing mid in the binarySearch of the workerStack (#​278)
  • bug: fix the missing log.Lmsgprefix in go1.13 (#​275)
  • fix: exit ticktock goroutine when pool is closed (#​264)

📚 Documentation

🧳 Misc

  • chore: reorganize the structure of internal packages 711cad9
  • chore: reformat the default log string 3110e41

Full Changelog: panjf2000/ants@v2.7.0...v2.8.0

Thanks to all these contributors: @​ELchem, @​GlebRadchenko, @​gocurr, @​panjf2000 and @​piaodazhu for making this release possible.

v2.7.5

Compare Source

v2.7.4

Compare Source

v2.7.3

Compare Source

v2.7.2

Compare Source

v2.7.1

Compare Source

v2.7.0: Ants v2.7.0

Compare Source

Changelogs

🛩 Enhancements

  • opt: cache current time for workders and update it periodically (#​261)
Performance improvement:
goos: darwin
goarch: arm64
pkg: github.com/panjf2000/ants/v2

name         old time/op    new time/op    delta
AntsPool-10     771ms ± 9%     669ms ± 6%  -13.29%  (p=0.000 n=10+10)

name         old alloc/op   new alloc/op   delta
AntsPool-10    23.0MB ± 5%    23.0MB ± 4%    ~    (p=0.968 n=10+9)

name         old allocs/op  new allocs/op  delta
AntsPool-10     1.10M ± 1%     1.10M ± 1%    ~     (p=0.182 n=10+9)

Full Changelog: panjf2000/ants@v2.6.0...v2.7.0

Thanks to all these contributors: @​panjf2000 for making this release possible.

v2.6.1

Compare Source

v2.6.0: Ants v2.6.0

Compare Source

Features

Add option to turn off automatically purge (#​253) b604f7d

v2.5.0: Ants v2.5.0

Compare Source

Features

Bugfixes

  • Fix some trivial bugs

Misc

  • Add one more use case (Baidu App) 9d85d57

Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.5.0 deps:chore -: deps:chore - update module github.com/panjf2000/ants/v2 to v2.5.0 Jun 27, 2022
@renovate renovate bot changed the title deps:chore -: deps:chore - update module github.com/panjf2000/ants/v2 to v2.5.0 deps:chore - update module github.com/panjf2000/ants/v2 to v2.5.0 Jun 28, 2022
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from 9b66a69 to dabb810 Compare November 20, 2022 17:25
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.5.0 deps:chore - update module github.com/panjf2000/ants/v2 to v2.6.0 Nov 20, 2022
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.6.0 deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.1 Mar 16, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from dabb810 to 2b9b688 Compare March 16, 2023 07:01
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.1 deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.2 Mar 23, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from 2b9b688 to 561fa8a Compare March 23, 2023 10:40
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.2 deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.3 Apr 17, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from 561fa8a to b87b992 Compare April 17, 2023 12:49
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.3 deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.4 May 28, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from b87b992 to 0ad5e85 Compare May 28, 2023 11:05
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.4 deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.5 Jun 8, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from 0ad5e85 to 395c0af Compare June 8, 2023 15:16
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.7.5 deps:chore - update module github.com/panjf2000/ants/v2 to v2.8.0 Jul 1, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from 395c0af to a148939 Compare July 1, 2023 16:17
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.8.0 deps:chore - update module github.com/panjf2000/ants/v2 to v2.8.1 Jul 6, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from a148939 to be7475d Compare July 6, 2023 13:50
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.8.1 deps:chore - update module github.com/panjf2000/ants/v2 to v2.8.2 Sep 18, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from be7475d to 19de207 Compare September 18, 2023 16:44
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.8.2 deps:chore - update module github.com/panjf2000/ants/v2 to v2.9.0 Nov 21, 2023
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from 19de207 to 2c024bb Compare November 21, 2023 08:16
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from 2c024bb to a5b8c9f Compare March 26, 2024 15:12
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.9.0 deps:chore - update module github.com/panjf2000/ants/v2 to v2.9.1 Mar 26, 2024
@renovate renovate bot force-pushed the renovate/github.com-panjf2000-ants-v2-2.x branch from a5b8c9f to a297677 Compare June 18, 2024 14:24
@renovate renovate bot changed the title deps:chore - update module github.com/panjf2000/ants/v2 to v2.9.1 deps:chore - update module github.com/panjf2000/ants/v2 to v2.10.0 Jun 18, 2024
Copy link
Contributor Author

renovate bot commented Jun 18, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated

Details:

Package Change
github.com/stretchr/testify v1.7.1 -> v1.8.2
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c -> v0.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants