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