diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-02 09:35:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-02 09:35:20 +0200 |
commit | 17937d1cc8dc96e0be2ce795442f91eb2dbf81da (patch) | |
tree | bb2907588905ef06e888b1b0d65ec7f038dc39b8 /butl | |
parent | 81c69fd1708e4326107e6a2716f0332a729136a8 (diff) |
Add note on potential path::normalize() optimization
Diffstat (limited to 'butl')
-rw-r--r-- | butl/path | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |