Cache | Reduce RAM
This commit is contained in:
parent
d20f5fc2b3
commit
178159b0c5
@ -50,6 +50,10 @@ func (tb *treeBuilder) Build(theirHeads []string, newChanges []*Change) (*Tree,
|
||||
}
|
||||
|
||||
func (tb *treeBuilder) build(heads []string, theirHeads []string, newChanges []*Change) (*Tree, error) {
|
||||
defer func() {
|
||||
tb.cache = make(map[string]*Change)
|
||||
}()
|
||||
|
||||
var proposedHeads []string
|
||||
tb.cache = make(map[string]*Change)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user