Skip to content

Make SizeMap calculation faster for small sizes - #645

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_975784186
Draft

Make SizeMap calculation faster for small sizes#645
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_975784186

Conversation

@copybara-service

Copy link
Copy Markdown

Make SizeMap calculation faster for small sizes

Index sizes <= 1024 directly by size, this increases the lookup array size by 896 bytes, but removes 2 instructions from the fast path:

7e5449: 48 8d 47 07 leaq 0x7(%rdi), %rax
7e544d: 48 c1 e8 03 shrq $0x3, %rax

Index sizes <= 1024 directly by size, this increases the lookup array size by 896 bytes, but removes 2 instructions from the fast path:

  7e5449: 48 8d 47 07                   leaq    0x7(%rdi), %rax
  7e544d: 48 c1 e8 03                   shrq    $0x3, %rax

PiperOrigin-RevId: 975784186
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.

1 participant