aboutsummaryrefslogtreecommitdiff
path: root/butl/path
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-02 09:35:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-02 09:35:20 +0200
commit17937d1cc8dc96e0be2ce795442f91eb2dbf81da (patch)
treebb2907588905ef06e888b1b0d65ec7f038dc39b8 /butl/path
parent81c69fd1708e4326107e6a2716f0332a729136a8 (diff)
Add note on potential path::normalize() optimization
Diffstat (limited to 'butl/path')
-rw-r--r--butl/path5
1 files changed, 4 insertions, 1 deletions
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