For micro-optimizations in hot loops, you can ‘hint’ to the JIT compiler to inline a method, removing the overhead of the method call.
[MethodImpl(MethodImplOptions.AggressiveInlining)] public int FastAdd(int a, int b) => a + b;
Note: Use this sparingly. Inlining too much can increase binary size and actually hurt performance via cache misses.
