From 17937d1cc8dc96e0be2ce795442f91eb2dbf81da Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 2 Aug 2016 09:35:20 +0200 Subject: Add note on potential path::normalize() optimization --- butl/path | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'butl') diff --git a/butl/path b/butl/path index d2d33b8..3cf3716 100644 --- a/butl/path +++ b/butl/path @@ -25,7 +25,10 @@ namespace butl // p -= "*/"; // leaf // p -= ".*"; // base // - // - Faster normalize() implementation. + // - Faster normalize() implementation. In many cases (e.g., in buil2) + // the path is either already normal or the difference is just slashes + // (i.e., there are no '.' or '..' components). So a fast path case + // might be in order. // // - We duplicate the interface for path and dir_path while most of it // is common. Also, we can implicit-cast dir_path& to path& and use -- cgit v1.1