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

Faster Resizing of IdTables #424

Merged
merged 2 commits into from Jul 18, 2021

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Jul 16, 2021

  • Integrated an "uninitializedAllocator" which safely allows to create a std::vector (or similar data structure)
    which can cheaply create new Elements (like ints) without initializing (zeroing) them.

  • This makes e.g. resizing the Vector to a bigger size much cheaper.

  • The most important application is the resize-operation of IdTables, which is now O(oldSize) instead of O(newSize) in case
    newSize > oldSize.

…a std::vector (or similar data structure)

which can cheaply create new Elements (like ints) without initializing (zeroing) them.

This makes e.g. resizing the Vector to a bigger size much cheaper.
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Code review in 1-1 with Johannes

@hannahbast hannahbast merged commit 40a8f12 into ad-freiburg:master Jul 18, 2021
@joka921 joka921 deleted the f.fasterResizeOfIdTable branch July 18, 2021 16:59
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

2 participants