Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22275

Modernize the GeoHash class

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Geo
    • Query Integration

      In src/mongo/db/geo/hash.cpp:

      Consider making geoBitSets, bitsField, maxField, and minField const.

      Consider using StringData instead of std::string or char* in initFromString, operator+, and appendHashMin to remove unnecessary calls to strlen.

      Consider removing copy constructor and assignment operator, which are identical to what the compiler would produce.

      Consider inlining ==, !=, getHash, and getBits.

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: