* Main the `substitutes-rev' table again, but now in a way that
doesn't take \Theta(n^2) space/time complexity.
This commit is contained in:
parent
c25f2883b1
commit
5c443b6550
3 changed files with 40 additions and 21 deletions
|
|
@ -66,8 +66,9 @@ bool querySuccessor(const Path & srcPath, Path & sucPath);
|
|||
Paths queryPredecessors(const Path & sucPath);
|
||||
|
||||
/* Register a substitute. */
|
||||
void registerSubstitute(const Transaction & txn,
|
||||
const Path & srcPath, const Substitute & sub);
|
||||
typedef list<pair<Path, Substitute> > SubstitutePairs;
|
||||
void registerSubstitutes(const Transaction & txn,
|
||||
const SubstitutePairs & subPairs);
|
||||
|
||||
/* Return the substitutes expression for the given path. */
|
||||
Substitutes querySubstitutes(const Path & srcPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue