summaryrefslogtreecommitdiff
path: root/src/generic/problemresolver/promotion_set.h
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2009-02-25 21:56:48 -0800
committerDaniel Burrows <dburrows@debian.org>2009-02-25 21:56:48 -0800
commitb043926d483f47f6612ae2cfdd849013a323d59e (patch)
tree1d644b6f3d1d842e36801f40a27effb45cbf3177 /src/generic/problemresolver/promotion_set.h
parent2485695f2acf9d19e48f12d4e1b956eecf22adf7 (diff)
downloadaptitude-b043926d483f47f6612ae2cfdd849013a323d59e.tar.gz
Update the doccomment for install_version_index_entry::from_dep_source_entries to be in line with the recent code changes.
Diffstat (limited to 'src/generic/problemresolver/promotion_set.h')
-rw-r--r--src/generic/problemresolver/promotion_set.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/generic/problemresolver/promotion_set.h b/src/generic/problemresolver/promotion_set.h
index ce1d99f5..65443b2b 100644
--- a/src/generic/problemresolver/promotion_set.h
+++ b/src/generic/problemresolver/promotion_set.h
@@ -189,6 +189,18 @@ private:
/** \brief The entries that contain this version installed from
* the dependency source, indexed by the dependency they solved.
+ *
+ * Each entry in this map includes all the elements of
+ * not_from_dep_source_entries: when we want to find the indexed
+ * hits for a version that was installed from a dependency
+ * source, we must also include the indexed hits for the
+ * "generic" version. This is the simplest way to achieve that
+ * without allocating space during the search (instead we
+ * pre-allocate the exact list we'll want for each index
+ * location). This moves the cost to the point where the
+ * structure is built, and in my off-the-cuff estimation this
+ * should be a win, since the promotion set is a read-mostly
+ * structure.
*/
std::map<dep, std::vector<entry_ref> > from_dep_source_entries;
};