File tree Expand file tree Collapse file tree 3 files changed +64
-55
lines changed Expand file tree Collapse file tree 3 files changed +64
-55
lines changed Original file line number Diff line number Diff line change 12
12
</ tr > </ thead >
13
13
< tbody > < tr >
14
14
< th > Go</ th >
15
- < th > 30 </ th >
16
- < th > 9637 </ th >
17
- < th > 1482 </ th >
18
- < th > 469 </ th >
19
- < th > 7686 </ th >
20
- < th > 1536 </ th >
21
- < th > 256898 </ th >
22
- < th > 4098 </ th >
15
+ < th > 28 </ th >
16
+ < th > 9570 </ th >
17
+ < th > 1462 </ th >
18
+ < th > 452 </ th >
19
+ < th > 7656 </ th >
20
+ < th > 1528 </ th >
21
+ < th > 255227 </ th >
22
+ < th > 4068 </ th >
23
23
</ tr > < tr >
24
24
< td > processor/formatters.go</ td >
25
25
< td > </ td >
63
63
</ tr > < tr >
64
64
< td > processor/processor.go</ td >
65
65
< td > </ td >
66
- < td > 671 </ td >
66
+ < td > 672 </ td >
67
67
< td > 141</ td >
68
68
< td > 104</ td >
69
- < td > 426 </ td >
69
+ < td > 427 </ td >
70
70
< td > 92</ td >
71
- < td > 19411 </ td >
72
- < td > 438 </ td >
71
+ < td > 19457 </ td >
72
+ < td > 439 </ td >
73
73
</ tr > < tr >
74
74
< td > main.go</ td >
75
75
< td > </ td >
76
- < td > 404 </ td >
76
+ < td > 429 </ td >
77
77
< td > 10</ td >
78
78
< td > 6</ td >
79
- < td > 388 </ td >
79
+ < td > 413 </ td >
80
80
< td > 10</ td >
81
- < td > 8969 </ td >
82
- < td > 256 </ td >
81
+ < td > 9693 </ td >
82
+ < td > 271 </ td >
83
83
</ tr > < tr >
84
84
< td > processor/detector_test.go</ td >
85
85
< td > </ td >
220
220
< td > 19</ td >
221
221
< td > 2043</ td >
222
222
< td > 60</ td >
223
- </ tr > < tr >
224
- < td > processor/processor_unix.go</ td >
225
- < td > </ td >
226
- < td > 69</ td >
227
- < td > 14</ td >
228
- < td > 14</ td >
229
- < td > 41</ td >
230
- < td > 8</ td >
231
- < td > 2030</ td >
232
- < td > 52</ td >
233
223
</ tr > < tr >
234
224
< td > processor/filereader.go</ td >
235
225
< td > </ td >
250
240
< td > 0</ td >
251
241
< td > 2209</ td >
252
242
< td > 35</ td >
253
- </ tr > < tr >
254
- < td > processor/bloom.go</ td >
255
- < td > </ td >
256
- < td > 37</ td >
257
- < td > 7</ td >
258
- < td > 12</ td >
259
- < td > 18</ td >
260
- < td > 2</ td >
261
- < td > 1062</ td >
262
- < td > 29</ td >
263
243
</ tr > < tr >
264
244
< td > processor/cocomo_test.go</ td >
265
245
< td > </ td >
270
250
< td > 6</ td >
271
251
< td > 686</ td >
272
252
< td > 23</ td >
253
+ </ tr > < tr >
254
+ < td > processor/bloom.go</ td >
255
+ < td > </ td >
256
+ < td > 37</ td >
257
+ < td > 7</ td >
258
+ < td > 12</ td >
259
+ < td > 18</ td >
260
+ < td > 2</ td >
261
+ < td > 1062</ td >
262
+ < td > 29</ td >
273
263
</ tr > < tr >
274
264
< td > processor/helpers_test.go</ td >
275
265
< td > </ td >
280
270
< td > 4</ td >
281
271
< td > 434</ td >
282
272
< td > 18</ td >
283
- </ tr > < tr >
284
- < td > processor/processor_unix_test.go</ td >
285
- < td > </ td >
286
- < td > 24</ td >
287
- < td > 6</ td >
288
- < td > 3</ td >
289
- < td > 15</ td >
290
- < td > 0</ td >
291
- < td > 411</ td >
292
- < td > 16</ td >
293
273
</ tr > < tr >
294
274
< td > examples/language/go.go</ td >
295
275
< td > </ td >
323
303
</ tr > </ tbody >
324
304
< tfoot > < tr >
325
305
< th > Total</ th >
326
- < th > 30 </ th >
327
- < th > 9637 </ th >
328
- < th > 1482 </ th >
329
- < th > 469 </ th >
330
- < th > 7686 </ th >
331
- < th > 1536 </ th >
332
- < th > 256898 </ th >
333
- < th > 4098 </ th >
306
+ < th > 28 </ th >
307
+ < th > 9570 </ th >
308
+ < th > 1462 </ th >
309
+ < th > 452 </ th >
310
+ < th > 7656 </ th >
311
+ < th > 1528 </ th >
312
+ < th > 255227 </ th >
313
+ < th > 4068 </ th >
334
314
</ tr >
335
315
< tr >
336
- < th colspan ="9 "> Estimated Cost to Develop (organic) $229,922 < br > Estimated Schedule Effort (organic) 7.87 months< br > Estimated People Required (organic) 2.60 < br > </ th >
316
+ < th colspan ="9 "> Estimated Cost to Develop (organic) $228,979 < br > Estimated Schedule Effort (organic) 7.85 months< br > Estimated People Required (organic) 2.59 < br > </ th >
337
317
</ tr > </ tfoot >
338
318
</ table > </ body > </ html >
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package main
5
5
import (
6
6
"fmt"
7
7
"os"
8
+ "runtime"
8
9
"strings"
9
10
10
11
"github.com/boyter/scc/v3/processor"
@@ -140,6 +141,30 @@ func main() {
140
141
10000 ,
141
142
"number of files to parse before turning the GC on" ,
142
143
)
144
+ flags .IntVar (
145
+ & processor .FileListQueueSize ,
146
+ "file-list-queue-size" ,
147
+ runtime .NumCPU (),
148
+ "the size of the queue of files found and ready to be read into memory" ,
149
+ )
150
+ flags .IntVar (
151
+ & processor .FileProcessJobWorkers ,
152
+ "file-process-job-workers" ,
153
+ runtime .NumCPU (),
154
+ "number of goroutine workers that process files collecting stats" ,
155
+ )
156
+ flags .IntVar (
157
+ & processor .FileSummaryJobQueueSize ,
158
+ "file-summary-job-queue-size" ,
159
+ runtime .NumCPU (),
160
+ "the size of the queue used to hold processed file statistics before formatting" ,
161
+ )
162
+ flags .IntVar (
163
+ & processor .DirectoryWalkerJobWorkers ,
164
+ "directory-walker-job-workers" ,
165
+ 8 ,
166
+ "controls the maximum number of workers which will walk the directory tree" ,
167
+ )
143
168
flags .StringVarP (
144
169
& processor .Format ,
145
170
"format" ,
Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ var FileProcessJobWorkers = runtime.NumCPU() * 4
165
165
// FileSummaryJobQueueSize is the queue used to hold processed file statistics before formatting
166
166
var FileSummaryJobQueueSize = runtime .NumCPU ()
167
167
168
+ // DirectoryWalkerJobWorkers is the number of workers which will walk the directory tree
169
+ var DirectoryWalkerJobWorkers = 8
170
+
168
171
// AllowListExtensions is a list of extensions which are allowed to be processed
169
172
var AllowListExtensions = []string {}
170
173
@@ -609,6 +612,7 @@ func Process() {
609
612
fileWalker .IgnoreGitModules = GitModuleIgnore
610
613
fileWalker .IncludeHidden = true
611
614
fileWalker .ExcludeDirectory = PathDenyList
615
+ fileWalker .SetConcurrency (DirectoryWalkerJobWorkers )
612
616
613
617
for _ , exclude := range Exclude {
614
618
regexpResult , err := regexp .Compile (exclude )
You can’t perform that action at this time.
0 commit comments