mirror of
https://github.com/go-gitea/git.git
synced 2026-07-20 15:06:10 -04:00
[PR #7] [MERGED] Custom max number of goroutine #19
Reference in New Issue
Block a user
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/go-gitea/git/pull/7
Author: @thibaultmeyer
Created: 11/12/2016
Status: ✅ Merged
Merged: 11/12/2016
Merged by: @thibaultmeyer
Base:
master← Head:feature/25-number-goroutine📝 Commits (1)
2bfc164Can set a custom max number of goroutine📊 Changes
1 file changed (+18 additions, -5 deletions)
View changed files
📝
tree_entry.go(+18 -5)📄 Description
Currently, the number of goroutine is hard-coded to 10. It is not efficient, by exemple, with 2 core CPU or with 16 core- CPU.
This pull request add ability to set the maximum number of goroutine allowed on the function
GetCommitsInfo(issue #25). If the given number is equal of lower than 0, the functionruntime.NumCPU()will be used.Later, if this PR is accepted, user will be able to set this max number of goroutine directly from Gitea
app.iniconfiguration file.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.