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/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index d5f010c7..0c501edb 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -205,7 +205,7 @@ struct MouseHandler } private: - std::unique_ptr m_dragging; + UniquePtr m_dragging; BufferCoord m_anchor; }; -- cgit v1.2.3