File tree Expand file tree Collapse file tree 4 files changed +33
-27
lines changed Expand file tree Collapse file tree 4 files changed +33
-27
lines changed Original file line number Diff line number Diff line change 13
13
< tbody > < tr >
14
14
< th > Go</ th >
15
15
< th > 27</ th >
16
- < th > 9578 </ th >
17
- < th > 1462 </ th >
16
+ < th > 9584 </ th >
17
+ < th > 1464 </ th >
18
18
< th > 447</ th >
19
- < th > 7669 </ th >
19
+ < th > 7673 </ th >
20
20
< th > 1413</ th >
21
- < th > 255238 </ th >
22
- < th > 4126 </ th >
21
+ < th > 255539 </ th >
22
+ < th > 4128 </ th >
23
23
</ tr > < tr >
24
24
< td > processor/workers_test.go</ td >
25
25
< td > </ td >
33
33
</ tr > < tr >
34
34
< td > processor/formatters.go</ td >
35
35
< td > </ td >
36
- < td > 1517 </ td >
36
+ < td > 1519 </ td >
37
37
< td > 208</ td >
38
38
< td > 39</ td >
39
- < td > 1270 </ td >
39
+ < td > 1272 </ td >
40
40
< td > 163</ td >
41
- < td > 44230 </ td >
42
- < td > 784 </ td >
41
+ < td > 44361 </ td >
42
+ < td > 785 </ td >
43
43
</ tr > < tr >
44
44
< td > processor/formatters_test.go</ td >
45
45
< td > </ td >
93
93
</ tr > < tr >
94
94
< td > cmd/badges/main.go</ td >
95
95
< td > </ td >
96
- < td > 374 </ td >
96
+ < td > 375 </ td >
97
97
< td > 60</ td >
98
98
< td > 17</ td >
99
- < td > 297 </ td >
99
+ < td > 298 </ td >
100
100
< td > 59</ td >
101
- < td > 9571 </ td >
102
- < td > 239 </ td >
101
+ < td > 9660 </ td >
102
+ < td > 240 </ td >
103
103
</ tr > < tr >
104
104
< td > processor/workers_tokei_test.go</ td >
105
105
< td > </ td >
213
213
</ tr > < tr >
214
214
< td > scripts/include.go</ td >
215
215
< td > </ td >
216
- < td > 84 </ td >
217
- < td > 16 </ td >
216
+ < td > 87 </ td >
217
+ < td > 18 </ td >
218
218
< td > 9</ td >
219
- < td > 59 </ td >
219
+ < td > 60 </ td >
220
220
< td > 19</ td >
221
- < td > 2207 </ td >
222
- < td > 62 </ td >
221
+ < td > 2288 </ td >
222
+ < td > 63 </ td >
223
223
</ tr > < tr >
224
224
< td > processor/filereader.go</ td >
225
225
< td > </ td >
294
294
< tfoot > < tr >
295
295
< th > Total</ th >
296
296
< th > 27</ th >
297
- < th > 9578 </ th >
298
- < th > 1462 </ th >
297
+ < th > 9584 </ th >
298
+ < th > 1464 </ th >
299
299
< th > 447</ th >
300
- < th > 7669 </ th >
300
+ < th > 7673 </ th >
301
301
< th > 1413</ th >
302
- < th > 255238 </ th >
303
- < th > 4126 </ th >
302
+ < th > 255539 </ th >
303
+ < th > 4128 </ th >
304
304
</ tr >
305
305
< tr >
306
- < th colspan ="9 "> Estimated Cost to Develop (organic) $229,388 < br > Estimated Schedule Effort (organic) 7.86 months< br > Estimated People Required (organic) 2.59< br > </ th >
306
+ < th colspan ="9 "> Estimated Cost to Develop (organic) $229,513 < br > Estimated Schedule Effort (organic) 7.86 months< br > Estimated People Required (organic) 2.59< br > </ th >
307
307
</ tr > </ tfoot >
308
308
</ table > </ body > </ html >
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package main
2
2
3
3
import (
4
4
"context"
5
- "encoding/json"
6
5
"errors"
7
6
"fmt"
8
7
"math"
@@ -17,6 +16,7 @@ import (
17
16
"time"
18
17
19
18
"github.com/boyter/scc/v3/processor"
19
+ jsoniter "github.com/json-iterator/go"
20
20
"github.com/rs/zerolog/log"
21
21
)
22
22
25
25
cache = NewSimpleCache (1000 , 86400 )
26
26
countingSemaphore = make (chan bool , 1 )
27
27
tmpDir = os .TempDir ()
28
+ json = jsoniter .ConfigCompatibleWithStandardLibrary
28
29
)
29
30
30
31
func main () {
Original file line number Diff line number Diff line change 6
6
"bytes"
7
7
"cmp"
8
8
"encoding/csv"
9
- "encoding/json"
10
9
"fmt"
11
10
"math"
12
11
"os"
@@ -17,6 +16,7 @@ import (
17
16
"strings"
18
17
"time"
19
18
19
+ jsoniter "github.com/json-iterator/go"
20
20
"github.com/mattn/go-runewidth"
21
21
22
22
glanguage "golang.org/x/text/language"
@@ -244,6 +244,7 @@ func toJSON(input chan *FileJob) string {
244
244
language := aggregateLanguageSummary (input )
245
245
language = sortLanguageSummary (language )
246
246
247
+ json := jsoniter .ConfigCompatibleWithStandardLibrary
247
248
jsonString , _ := json .Marshal (language )
248
249
249
250
if Debug {
@@ -272,6 +273,7 @@ func toJSON2(input chan *FileJob) string {
272
273
273
274
cost , schedule , people := esstimateCostScheduleMonths (sumCode )
274
275
276
+ json := jsoniter .ConfigCompatibleWithStandardLibrary
275
277
jsonString , _ := json .Marshal (Json2 {
276
278
LanguageSummary : language ,
277
279
EstimatedCost : cost ,
Original file line number Diff line number Diff line change @@ -6,15 +6,18 @@ import (
6
6
"bytes"
7
7
"compress/gzip"
8
8
"encoding/base64"
9
- "encoding/json"
10
9
"fmt"
11
10
"io"
12
11
"os"
13
12
"strings"
13
+
14
+ jsoniter "github.com/json-iterator/go"
14
15
)
15
16
16
17
const constantsFile = "./processor/constants.go"
17
18
19
+ var json = jsoniter .ConfigCompatibleWithStandardLibrary
20
+
18
21
// Reads all .json files in the current folder
19
22
// and encodes them as strings literals in constants.go
20
23
func generateConstants () error {
You can’t perform that action at this time.
0 commit comments