diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2011-03-17 11:48:54 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2011-03-17 11:48:54 -0700 |
commit | eb9f5718d412022015bb65eb08c30785c79e79e6 (patch) | |
tree | be0b6a9de27965e39c44c5c8a88adf9caa13abf8 /src/cstore/cstore-varref.hpp | |
parent | cda3f423c311fd30e8cc24e2de67d99baf352b2a (diff) | |
download | vyatta-cfg-eb9f5718d412022015bb65eb08c30785c79e79e6.tar.gz vyatta-cfg-eb9f5718d412022015bb65eb08c30785c79e79e6.zip |
add config path abstraction and high-level caching
* part of the config backend cleanup/optimization work.
* improves the performance of "load" (w/o commit) by ~55% and "show" by ~15%.
Diffstat (limited to 'src/cstore/cstore-varref.hpp')
-rw-r--r-- | src/cstore/cstore-varref.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cstore/cstore-varref.hpp b/src/cstore/cstore-varref.hpp index 3b842a9..acfe4d1 100644 --- a/src/cstore/cstore-varref.hpp +++ b/src/cstore/cstore-varref.hpp @@ -30,18 +30,18 @@ public: ~VarRef() {}; bool getValue(string& value, vtw_type_e& def_type); - bool getSetPath(vector<string>& path_comps); + bool getSetPath(Cpath& path_comps); private: Cstore *_cstore; bool _active; bool _absolute; string _at_string; - vector<string> _orig_path_comps; - vector<pair<vector<string>, vtw_type_e> > _paths; + Cpath _orig_path_comps; + vector<pair<Cpath, vtw_type_e> > _paths; - void process_ref(const vector<string>& ref_comps, - const vector<string>& cur_path_comps, vtw_type_e def_type); + void process_ref(const Cpath& ref_comps, + const Cpath& cur_path_comps, vtw_type_e def_type); }; } // end namespace cstore |