Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend: dwarfdbginf: Use LEB128 encoding for lines and columns (#13246)
Using variable length form for lines and columns in debug info can decrease binary size from 1.04% for 16-bit and 3.06% for 32-bit according to my tests. These numbers were based on 100 000 functions with 4 variables. Increasing the line count makes less difference, increasing the variable count makes more difference. Overall it reduces the binary size on all tests. This adds the LEB128 encoding overhead however a SIMD implementation can be taken to consideration since the current implementation uses manual for loop. Signed-off-by: Luís Ferreira <contact@lsferreira.net>
- Loading branch information