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

Modernize the GeoHash class

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Geo
    • Query Integration

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: