]> Cypherpunks.ru repositories - goredo.git/blobdiff - ifchange.go
Storage optimisations for the same often used data
[goredo.git] / ifchange.go
index 9f7f4b572d583c1a5fbdf216f7788e280a7e8431..c9053712ce4867464c56f5c086caff6436307420 100644 (file)
@@ -35,6 +35,7 @@ func collectDeps(
        if err != nil {
                return nil
        }
+       DepInfoCache[tgt.Dep()] = depInfo
        seen[tgt.a] = struct{}{}
        var alwayses []*Tgt
        returnReady := false
@@ -85,7 +86,11 @@ func buildDependants(tgts []*Tgt) map[string]*Tgt {
                                }
                        }
                }
+               InodeCache = make(map[string][]*Inode)
        }
+       TgtCache = nil
+       HashCache = nil
+       InodeCache = nil
        if len(seen) == 0 {
                return seen
        }