github / github/codeql

Size of CodeQL binary distribution has almost trippled since 2021

Đang mở
#14,125 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

**Description of the issue**

I've noticed that the size of the CodeQL binary distribution only knows one direction - upwards.

2021-04-29: 242 MB compressed, 476 MB uncompressed
2022-12-03: 417 MB compressed, 1.1GB uncompressed
2023-09-04: 541 MB compressed, 1.4 GB uncompressed

Now this is of course somewhat expected as there are new languages being added over the course of time and space is free; expect when it slowly isn't^^
I'm wondering whether there are some easy improvements possible.
For example `fdupes -r -S -m .` in the `tools/`directory results in
```shell
89 duplicate files (in 8 sets), occupying 119.7 megabytes
```
and for example all of these files are identical:

```
4092064 bytes each:
./linux64/lib64__trace
./linux64/lib/x86_64-linux-gnutrace.so
./linux64/lib/x86_64-linux-gnu_xeon_phi_trace.so
./linux64/lib/x86_64-linux-gnu_x86_64_trace.so
./linux64/lib/x86_64-linux-gnu_i686_trace.so
./linux64/lib/x86_64-linux-gnu_haswell_trace.so
./linux64/lib_xeon_phi_trace.so
./linux64/lib_x86_64_trace.so
./linux64/lib_haswell_trace.so
./linux64/lib64trace.so
./linux64/lib64_xeon_phi_trace.so
./linux64/lib64_x86_64_trace.so
./linux64/lib64_i686_trace.so
./linux64/lib64_haswell_trace.so
./linux64/x86_64-linux-gnutrace.so
./linux64/x86_64-linux-gnu_xeon_phi_trace.so
./linux64/x86_64-linux-gnu_x86_64_trace.so
./linux64/x86_64-linux-gnu_i686_trace.so
./linux64/x86_64-linux-gnu_haswell_trace.so
```

The `swift/` subdirectory occupies more than 500 MB; maybe it is possible to try to build some of these binaries with `-Osize` or something similar?
Feel free to close this issue, if you think this is not worthwhile or there are no easy gains.

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.