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

Optimized partition metadata lookup #4443

Merged
merged 2 commits into from
May 9, 2022

Commits on May 5, 2022

  1. c/topics_table: optimized per partition metadata lookup

    Optimized per partition metadata lookup by storing partition metadata in
    `absl::btree_set` the set provides fast lookup while keeping partitions
    ordered. Limited number of times partition metadata are copied by
    returning metadata object stored directly in a map.
    
    Signed-off-by: Michal Maslanka <michal@vectorized.io>
    mmaslankaprv committed May 5, 2022
    Configuration menu
    Copy the full SHA
    abc00f0 View commit details
    Browse the repository at this point in the history
  2. c/topic_table: introduced method returning reference to topic metadata

    Introduced method returning reference to topic metadata. The reference
    returning method allow us to avoid copying metadata object when it has
    to be accessed by synchronous parts of code.
    
    Important:
    Remember not to use the reference when its lifetime has to
    span across multiple scheduling point. Reference returning method is
    provided not to copy metadata object when used by synchronous parts of
    code
    
    Signed-off-by: Michal Maslanka <michal@vectorized.io>
    mmaslankaprv committed May 5, 2022
    Configuration menu
    Copy the full SHA
    d32572c View commit details
    Browse the repository at this point in the history