update_index_data should use btree_set instead of std::set

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0, 7.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.0
    • 105
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      update_index_data uses std::set for canonicalPaths and pathComponents, and both of these sets are iterated over quite a bit. The cost of iterating over a std::set's rbtree is not cheap, and can be improved by using absl::btree_set instead.

      boost::flat_set was also evaluated, but had worse performance numbers overall compared to btree_set.

              Assignee:
              Colin Stolley
              Reporter:
              Colin Stolley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: