Closed
Description
There are more than 720 licenses in Gitea https://github.com/go-gitea/gitea/tree/main/options/license
Most of them are out-dated/inactive/unpopular
We could just keep about 20-40 popular licenses:
- https://innovationgraph.github.com/global-metrics/licenses
- https://github.com/github/innovationgraph/blob/main/data/licenses.csv
Benefits:
- reduce binary size
- speed up execution time
- save memory
- especially the License Detector, it consumes more than 100MB memory at the moment
- by removing most unnecessary licenses, License Detector could only consume 3-5MB memory then