diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2023-02-28 11:47:17 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2023-02-28 15:36:59 +0300 |
commit | dea2290273e3c166847d399d9ed4e706d6d90dcc (patch) | |
tree | fd99cbab2dda184cc02d5ed1965489f6133a9b70 /NOTICE | |
parent | 770edd2d7f8324da646df478eb271544393316df (diff) |
Include go-license-detector performance patch in fork
The library is using a regex to split files from possible first
lines of licenses. It uses normalized first line's from known
licenses to build the regex. The problem is that App-s2p.txt
license's first line normalizes into an empty line, which causes
the regex to match every line beginning and ending. Each split is
treated as a possible license candidate and analyzed. This has a
drastic effect on performance as any large files that look like
possible licenses will have the logic run for each line. This
commit solves the problem by dropping the problematic license
from the first line regex. Proper fix would be better but this
allows us to test the effect on performance faster.
This changes our fork to point to a version that contains the fix
for the performance issue. The fork is otherwise the same.
Diffstat (limited to 'NOTICE')
-rw-r--r-- | NOTICE | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19735,7 +19735,7 @@ LICENSE - github.com/jcmturner/rpc/v2 LICENSE - github.com/jdkato/prose MIT License -Copyright (c) 2017 Joseph Kato +Copyright (c) 2017 -2018 Joseph Kato Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal |