Use a simpler hashing for the Rule2Literal case
this speeds up "composer update" by ~18%pull/7450/head
parent
f24fcea35b
commit
0aa7ec2d2c
|
@ -50,9 +50,7 @@ class Rule2Literals extends Rule
|
||||||
|
|
||||||
public function getHash()
|
public function getHash()
|
||||||
{
|
{
|
||||||
$data = unpack('ihash', md5($this->literal1.','.$this->literal2, true));
|
return $this->literal1.','.$this->literal2;
|
||||||
|
|
||||||
return $data['hash'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue