[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28812] New: ld: Make --compress-debug-sections=zlib parallel
From: |
i at maskray dot me |
Subject: |
[Bug ld/28812] New: ld: Make --compress-debug-sections=zlib parallel |
Date: |
Mon, 24 Jan 2022 01:07:30 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28812
Bug ID: 28812
Summary: ld: Make --compress-debug-sections=zlib parallel
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
For a -DCMAKE_BUILD_TYPE=Debug build of clang with 265MiB SHF_ALLOC sections
and 920MiB uncompressed debug sections.
```
% =time -f "CPU: %Us\tReal: %es\tRAM: %MKB" ld.bfd @response.txt -o bfd
CPU: 69.17s Real: 78.50s RAM: 6689800KB
% =time -f "CPU: %Us\tReal: %es\tRAM: %MKB" ld.bfd @response.txt -o bfd
--compress-debug-sections=zlib
CPU: 96.18s Real: 104.31s RAM: 7469100KB
```
With a parallel implementation, the compile time can be decreased to below 3
seconds with parallel divide-and-conquer with 8 threads.
I will add a parallel implementation to ld.lld
(https://maskray.me/blog/2022-01-23-compressed-debug-sections).
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/28812] New: ld: Make --compress-debug-sections=zlib parallel,
i at maskray dot me <=