Revert "Merge pull request #422 from svanharmelen/f-shaving-off-some-cpu-cycles"
This reverts commit428cce2478
, reversing changes made to517c5b2ea8
.
This commit is contained in:
parent
428cce2478
commit
17d1bb7dde
|
@ -349,10 +349,12 @@ func (d *ResourceData) getSet(
|
||||||
var indexMap map[int]int
|
var indexMap map[int]int
|
||||||
if len(parts) > 0 {
|
if len(parts) > 0 {
|
||||||
indexMap = make(map[int]int)
|
indexMap = make(map[int]int)
|
||||||
|
}
|
||||||
|
|
||||||
// Build the set from all the items using the given hash code
|
// Build the set from all the items using the given hash code
|
||||||
for i, v := range list {
|
for i, v := range list {
|
||||||
code := s.add(v)
|
code := s.add(v)
|
||||||
|
if indexMap != nil {
|
||||||
indexMap[code] = i
|
indexMap[code] = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue