[libcxx-commits] [libcxx] [llvm] [libc++] Make std::align an inline function (PR #167472)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Dec 17 13:00:34 PST 2025


================
@@ -83,6 +83,8 @@ Improvements and New Features
   iterators, resulting in a performance improvement for ``std::deque<short>`` and
   ``std::join_view<vector<vector<short>>>`` iterators.
 
+- The performance of ``align`` has been improved about 2x by making it an inline function.
----------------
ldionne wrote:

```suggestion
- The performance of ``align`` has been improved by making it an inline function, which allows the compiler to better optimize calls to it.
```

https://github.com/llvm/llvm-project/pull/167472


More information about the libcxx-commits mailing list