Skip to content

TAP 15: Compare relative PEP 458 metadata overhead - #159

Merged
mnm678 merged 1 commit into
theupdateframework:masterfrom
lukpueh:tap15-clarify-metadata-overhead
Aug 9, 2022
Merged

mnm678 merged 1 commit into
theupdateframework:masterfrom
lukpueh:tap15-clarify-metadata-overhead

Conversation

@lukpueh

@lukpueh lukpueh commented Aug 4, 2022

Copy link
Copy Markdown
Member

Prior to this change we compared the overall metadata overhead of
traditional and succinct hash bin delegation (hbd), using different
numbers of bins optimized for each hashing scheme for a "fair"
comparison. However, using different numbers makes it harder to
understand the advantage of succinct hbd, i.e. no growth of the
delegating metadata vs. linear growth with number of bins.

This change focuses on the different sizes of the delegating
targets metadata for the same number of bins to underline the
advantage of succinct hbd.

Background info: The optimum number of bins for a given number of
target files varies between the two schemes, because in traditional
hbd the positive effect of many bins is undermined by the huge size
of the delegating metadata.

Other changes include:

  • use a real world number of bins (PEP 458) instead of fictional
  • compare metadata overhead percentages instead of absolute numbers
  • perform keyid calcs with 64 instead of 32 bytes to match
    reference implementation
  • remove mention of inaccurate (32-bit) and not so relevant keyid size

See #155 (comment) for initial discussion.

@lukpueh
lukpueh requested review from joshuagl and mnm678 August 4, 2022 08:56
joshuagl
joshuagl previously approved these changes Aug 5, 2022

@joshuagl joshuagl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a great clarity improvement, thanks. I made a minor suggestion to the description of real-world numbers in order emphasise the difference by using similar sentence structures, what day you think?

Comment thread tap15.md Resolved
Prior to this change we compared the overall metadata overhead of
traditional and succinct hash bin delegation (hbd), using different
numbers of bins optimized for each hashing scheme for a "fair"
comparison. However, using different numbers makes it harder to
understand the advantage of succinct hbd, i.e. no growth of the
delegating metadata vs. linear growth with number of bins.

This change focuses on the different sizes of the delegating
targets metadata for the same number of bins to underline the
advantage of succinct hbd.

Background info: The optimum number of bins for a given number of
target files varies between the two schemes, because in traditional
hbd the positive effect of many bins is undermined by the huge size
of the delegating metadata.

Other changes include:
- use a real world number of bins (PEP 458) instead of fictional
- compare metadata overhead percentages instead of absolute numbers
- perform keyid calcs with 64 instead of 32 bytes to match
  reference implementation
- remove mention of inaccurate (32-bit) and not so relevant keyid size

See
theupdateframework#155 (comment)
for initial discussion.

Signed-off-by: Lukas Puehringer <[email protected]>
Co-authored-by: Joshua Lock <[email protected]>
@lukpueh
lukpueh force-pushed the tap15-clarify-metadata-overhead branch from 023fc89 to 44b671d Compare August 9, 2022 07:13
@lukpueh

lukpueh commented Aug 9, 2022

Copy link
Copy Markdown
Member Author

Excellent suggestion, @joshuagl! Took the liberty to squash it with my original commit. Can I get another approval?

@joshuagl joshuagl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🎉

@mnm678
mnm678 merged commit 56bfa27 into theupdateframework:master Aug 9, 2022
mnm678 pushed a commit to mnm678/taps that referenced this pull request Oct 4, 2022
…k#159)

Prior to this change we compared the overall metadata overhead of
traditional and succinct hash bin delegation (hbd), using different
numbers of bins optimized for each hashing scheme for a "fair"
comparison. However, using different numbers makes it harder to
understand the advantage of succinct hbd, i.e. no growth of the
delegating metadata vs. linear growth with number of bins.

This change focuses on the different sizes of the delegating
targets metadata for the same number of bins to underline the
advantage of succinct hbd.

Background info: The optimum number of bins for a given number of
target files varies between the two schemes, because in traditional
hbd the positive effect of many bins is undermined by the huge size
of the delegating metadata.

Other changes include:
- use a real world number of bins (PEP 458) instead of fictional
- compare metadata overhead percentages instead of absolute numbers
- perform keyid calcs with 64 instead of 32 bytes to match
  reference implementation
- remove mention of inaccurate (32-bit) and not so relevant keyid size

See
theupdateframework#155 (comment)
for initial discussion.

Signed-off-by: Lukas Puehringer <[email protected]>
Co-authored-by: Joshua Lock <[email protected]>

Co-authored-by: Joshua Lock <[email protected]>
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.

3 participants