-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Programmability
-
Programmability 2025-06-09
-
None
-
3
-
TBD
-
None
-
None
-
None
-
None
-
None
-
None
A number of performance metrics have regressed as of switching to the v5 toolchain in SERVER-101790; some of these regressions appear to be a result of v5 compilers making different inlining decisions than those in v4. We should use forced inlining in the short-term to buy back these regressions, while leaving ourselves the option in the future to remove these forced inlining directives once we're able to turn on PGO and other optimizations that should result in more consistent, stable, and optimal binary layouts.
Add a macro that resolves to MONGO_COMPILER_ALWAYS_INLINE and whose name indicates clearly that the purpose of the forced inlining is to resolve v5 regressions. Then, update the changes in SERVER-104864 so that the changes to forcibly inline functions in that ticket use the new macro.
- is related to
-
SERVER-101790 Deprecate support for v4 toolchain
-
- Closed
-
-
SERVER-104864 Force compiler to inline some functions in BSONColumn decompress path
-
- Closed
-
- related to
-
SERVER-105707 Remove forced inlining directives resulting from v5 toolchain perf regressions
-
- Blocked
-