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

Virtual instead of reserved string ids #98

Conversation

michaelwoerister
Copy link
Member

@michaelwoerister michaelwoerister commented Dec 9, 2019

This PR removes some unnecessary overhead from the StringTable format.

With this commit only "virtual" StringIds get an entry in the index table and regular StringIds
store an actual address instead of index table key. That makes the index data a lot smaller
and removes the need to do a table lookup for regular StringIds.

This optimization becomes important when recording query keys because we allocate a lot more string data in that case.

This PR also contains the changes from #97. Feel free to review/merge all at once or separately.

@michaelwoerister michaelwoerister force-pushed the virtual-instead-of-reserved-string-ids branch from e7cefe5 to 269c959 Compare December 9, 2019 15:59
@wesleywiser wesleywiser self-assigned this Dec 9, 2019
measureme/src/stringtable.rs Show resolved Hide resolved
analyzeme/src/stringtable.rs Show resolved Hide resolved
…pt of virtual StringIds.

With this commit only "virtual" StringIds get an entry in the index table and regular StringIds
store an actual address instead of index table key. That makes the index data a lot smaller
and removes the need to do a table lookup for regular StringIds.
@michaelwoerister michaelwoerister force-pushed the virtual-instead-of-reserved-string-ids branch from 269c959 to 47ca752 Compare December 10, 2019 09:07
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.

2 participants