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

Shrink size of gc_entry_t #6394

Closed
wants to merge 4 commits into from
Closed

Shrink size of gc_entry_t #6394

wants to merge 4 commits into from

Conversation

srh
Copy link
Contributor

@srh srh commented Jun 14, 2017

Description

This reduces the memory overhead of gc_entry_t. This reduces the constant factor of memory overhead per unit of data on disk.

srh added 4 commits June 13, 2017 19:36
This has the effect of reducing sizeof(gc_entry_t::block_info_t) by 4 bytes.

The value is already stored as a uint16_t in the LBA.
This makes sizeof(block_info_t) == 4 on Windows.  The struct
layout with heterogeneous types, or perhaps with bools, used
6 bytes otherwise.
@srh srh added this to the 2.5 milestone Jun 14, 2017
@srh
Copy link
Contributor Author

srh commented Jun 14, 2017

The most controversial change here is the change of the block size from uint32_t to uint16_t, everywhere.

@srh
Copy link
Contributor Author

srh commented Jun 15, 2017

In next as of ceb207c. Changing block size to uint16_t is not particularly controversial, because we can always change it back later.

@srh srh closed this Jun 15, 2017
@srh srh deleted the sam/gc_entry branch June 15, 2017 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant