From ce1d512a0c1922ab5f43f28e7bae573508c98601 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 8 Jul 2025 11:43:17 +1000 Subject: Replace std::unique_ptr with a custom implementation is a costly header we can avoid by just implementing UniquePtr ourselves, which is a pretty straightforward in modern C++, this saves around 10% of the compilation time here. --- src/buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer.cc') diff --git a/src/buffer.cc b/src/buffer.cc index 9a735aaf..5c7d26fa 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -87,7 +87,7 @@ void Buffer::on_registered() m_flags &= ~Flags::NoBufSetOption; for (auto& option : options().flatten_options() - | transform(&std::unique_ptr