Change the backing data structure of VarSet from slice to map

This will speed up most operations performed on a large set of Vars
This commit is contained in:
Ian Howell
2019-06-20 14:20:05 -05:00
committed by Jerome Brette
parent 8bf20527be
commit b1cdf581d0
3 changed files with 68 additions and 25 deletions

View File

@@ -28,7 +28,7 @@ func MakeEmptyAccumulator() *ResAccumulator {
ra := &ResAccumulator{}
ra.resMap = resmap.New()
ra.tConfig = &config.TransformerConfig{}
ra.varSet = types.VarSet{}
ra.varSet = types.NewVarSet()
return ra
}