diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2021-04-01 13:23:08 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-07 12:47:32 +0000 |
commit | 659a367887558c4ed71bead6e1da9b5a5fe3d84b (patch) | |
tree | 8e68ea73bc46f2361e329a8c454409c2ff976a6e /src/mongo/db/s/add_shard_util.h | |
parent | 623aa8fee52c5a63f950aa7cc8e34c551c41ead5 (diff) | |
download | mongo-659a367887558c4ed71bead6e1da9b5a5fe3d84b.tar.gz |
SERVER-55482 Optimize timeseries minmax calculation algorithm
* Only traverse inserted object once, calculate both min and max at the same time
* Allow inlining of comparator when possible
* Reuse buffer to store values if buffer size is sufficient
* Don't store field name in value as it is already stored in map owning MinMax object.
Overall this should cut CPU usage in about half.
Diffstat (limited to 'src/mongo/db/s/add_shard_util.h')
0 files changed, 0 insertions, 0 deletions