aboutcode-org / aboutcode-org/scancode-toolkit

Add option to disable sequence matching

Đang mở
#4,945 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
new feature
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

## Short Description

Sequence matching is currently the most costly part for license matching. Some unscientific testing: scanning busybox 1.35.0 on my machine with sequence matching enabled takes a bit over 4 minutes, with sequence matching disabled it is 17 seconds.

I sometimes have a need to only do exact matches and don't care about the partial sequence matches. It would be nice to be able to disable this (and of course to have the option recorded in the JSON output so I know that sequence matching was disabled).

## Possible Labels

- new feature

## Select Category

- [X] Enhancement
- [ ] Add License/Copyright
- [X] Scan Feature
- [ ] Packaging
- [ ] Documentation
- [ ] Expand Support
- [ ] Other

## **Describe the Update**

I would like to have a commandline option to disable sequence matching. This apparently is already exposed in the API (according to @pombredanne ) but it isn't an option in the CLI. Disabling sequence matching seriously speeds up scanning.

Of course, if the option is used it should be recorded in the JSON output.

## **How This Feature will help you/your organization**

It would make things faster.

## **Possible Solution/Implementation Details**

## **Example/Links if Any**

## **Can you help with this Feature**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.