Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cdb45d9

Browse files
author
Shuo
authored
Merge pull request #723 from openset/develop
limit
2 parents 10a222e + e485e24 commit cdb45d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎internal/description/description.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package description
33

44
import (
55
"fmt"
6+
"runtime"
67
"sync"
78

89
"github.com/openset/leetcode/internal/base"
@@ -25,7 +26,7 @@ func runDescription(cmd *base.Command, args []string) {
2526
}
2627
var wg sync.WaitGroup
2728
jobs := make(chan leetcode.StatStatusPairsType)
28-
for i := 0; i < 1<<7; i++ {
29+
for i := 0; i < 1<<runtime.NumCPU(); i++ {
2930
go worker(jobs, &wg)
3031
}
3132
problems := leetcode.ProblemsAll()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /