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_manager.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/buffer_manager.hh') diff --git a/src/buffer_manager.hh b/src/buffer_manager.hh index 2b4c0b31..f441aa9b 100644 --- a/src/buffer_manager.hh +++ b/src/buffer_manager.hh @@ -4,8 +4,7 @@ #include "buffer.hh" #include "vector.hh" #include "utils.hh" - -#include +#include "unique_ptr.hh" namespace Kakoune { @@ -13,7 +12,7 @@ namespace Kakoune class BufferManager : public Singleton { public: - using BufferList = Vector, MemoryDomain::BufferMeta>; + using BufferList = Vector, MemoryDomain::BufferMeta>; using iterator = BufferList::const_iterator; ~BufferManager(); -- cgit v1.2.3