[SERVER-22275] Modernize the GeoHash class Created: 22/Jan/16 Updated: 28/Dec/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Tess Avitabile (Inactive) | Assignee: | Backlog - Query Integration |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | neweng, qi-geo | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Integration
|
| Participants: |
| 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. |