XMLWordPrintableJSON

Details

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible

    Description

      The constructor for ResourceId computes the hash of the entity each time. Here, we do this in the hot path over and over for the same Resource:
      https://github.com/10gen/mongo/blob/master/src/mongo/db/concurrency/lock_stats.h#L135

      This can be moved to a constant and save a lot of needless computation.

      xxhash might also speed up ResourceId, but it may not matter enough to bother with it.

      Attachments

        Activity

          People

            colin.stolley@mongodb.com Colin Stolley
            colin.stolley@mongodb.com Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: