merged branch Tobion/patch-1 (PR #6237)

This PR was merged into the master branch.

Commits
-------

76e5bce no need to set the compiled route to null when cloning

Discussion
----------

[Routing] no need to set the compiled route to null when cloning

The compiled reference can be reused when cloning. When the route is changed, the compiled reference is set to null anyway. So if you just clone the route, this improves performance as it does not need to recompile.
This commit is contained in:
Fabien Potencier 2012-12-10 13:43:10 +01:00
commit 0e2370e65e

View File

@ -76,11 +76,6 @@ class Route implements \Serializable
$this->setHostnamePattern($hostnamePattern);
}
public function __clone()
{
$this->compiled = null;
}
public function serialize()
{
return serialize(array(