Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOLT] Use continuous output addresses in delta encoding in BAT #76904

Conversation

aaupov
Copy link
Contributor

@aaupov aaupov commented Jan 4, 2024

Make output function addresses be delta-encoded wrt last offset in the
previous function. This reduces the deltas in function start addresses.

Test Plan:
Reduces BAT section size to:

  • large binary: 12218860 bytes (0.32x original),
  • medium binary: 1606580 bytes (0.27x original),
  • small binary: 404 bytes (0.28x original),

Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Copy link
Contributor

@rafaelauler rafaelauler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aaupov aaupov changed the base branch from users/aaupov/spr/main.bolt-use-continuous-output-addresses-in-delta-encoding-in-bat to main January 18, 2024 19:58
@aaupov aaupov changed the base branch from main to users/aaupov/spr/main.bolt-use-continuous-output-addresses-in-delta-encoding-in-bat January 18, 2024 20:00
PortalPete and others added 2 commits January 18, 2024 12:25
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
@aaupov aaupov changed the base branch from users/aaupov/spr/main.bolt-use-continuous-output-addresses-in-delta-encoding-in-bat to main January 18, 2024 21:49
@aaupov aaupov merged commit 8f1d94a into main Jan 18, 2024
6 of 7 checks passed
@aaupov aaupov deleted the users/aaupov/spr/bolt-use-continuous-output-addresses-in-delta-encoding-in-bat branch January 18, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants