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/highlighter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/highlighter.cc') diff --git a/src/highlighter.cc b/src/highlighter.cc index 7a6b2155..3e253343 100644 --- a/src/highlighter.cc +++ b/src/highlighter.cc @@ -35,7 +35,7 @@ Highlighter& Highlighter::get_child(StringView path) throw runtime_error("this highlighter does not hold children"); } -void Highlighter::add_child(String, std::unique_ptr&&, bool) +void Highlighter::add_child(String, UniquePtr&&, bool) { throw runtime_error("this highlighter does not hold children"); } -- cgit v1.2.3