Don't allocate arrays in Requirement#hash
This commit is contained in:
parent
e66e302c14
commit
33dfc8e8b8
@ -80,7 +80,7 @@ class Requirement
|
||||
end
|
||||
|
||||
def hash
|
||||
[name, *tags].hash
|
||||
name.hash ^ tags.hash
|
||||
end
|
||||
|
||||
def inspect
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user