diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-01 19:20:03 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-02 20:22:21 +0300 |
commit | 8741fa1d4555aaf17b08fd478a2bd2fb798756f0 (patch) | |
tree | 6c7c498b308c2a5071d25ce8acd804d637658caa /bpkg/package.hxx | |
parent | 5d81c755c77ab6b182ab713de29826bace79f466 (diff) |
Use butl::small_vector instead of std::vector in persistent classes where it makes sense
Diffstat (limited to 'bpkg/package.hxx')
-rw-r--r-- | bpkg/package.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/package.hxx b/bpkg/package.hxx index 9d7cedf..3ac48a6 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -346,7 +346,7 @@ namespace bpkg lazy_shared_ptr<repository_fragment> fragment; }; - using fragments_type = std::vector<fragment_type>; + using fragments_type = small_vector<fragment_type, 1>; string name; // Object id (canonical name). repository_location location; @@ -459,7 +459,7 @@ namespace bpkg // that since the package is already in at least fetched state, we // shouldn't be needing its location. // - vector<package_location> locations; + small_vector<package_location, 1> locations; // Package manifest data. // |