|
Author:
{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}
Message: 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.
Branch: master
https://github.com/mongodb/mongo/commit/659a367887558c4ed71bead6e1da9b5a5fe3d84b
|