Improve runtime of IndexCatalogImpl::haveIdIndex()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Catalog
    • None
    • Catalog and Routing
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Consider improving runtime of IndexCatalogImpl::haveIdIndex() by precomputing the result upon class instance construction and on update of index set. A flag should be enough.
      IndexCatalogImpl::haveIdIndex() consumes 0.2% of cycles in the runtime profile in YCSB 100% read benchmark run. It seems that it is a simple and not risky improvement.

              Assignee:
              Unassigned
              Reporter:
              Mindaugas Malinauskas
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: