[SERVER-78239] Optimize isImplicitlyReplicated() check Created: 20/Jun/23 Updated: 29/Oct/23 Resolved: 21/Jun/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 7.0.0-rc6 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Colin Stolley | Assignee: | Colin Stolley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Backport Requested: |
v7.0
|
||||||||
| Participants: | |||||||||
| Description |
|
At https://github.com/10gen/mongo/blob/53837263e1973f51b6960bafb618102d93eb1632/src/mongo/db/namespace_string.cpp#L412 we have a number of tests OR'd together for isImplicitlyReplicated(), but all of them begin with the predicate isConfigDB(). We can short circuit immediately if we begin with that test, since in the common case this will be false.
|
| Comments |
| Comment by Githook User [ 21/Jun/23 ] |
|
Author: {'name': 'Colin Stolley', 'email': 'colin.stolley@mongodb.com', 'username': 'ccstolley'}Message: |
| Comment by Githook User [ 21/Jun/23 ] |
|
Author: {'name': 'Colin Stolley', 'email': 'colin.stolley@mongodb.com', 'username': 'ccstolley'}Message: |