diff options
author | Olle Lundberg <geek@nerd.sh> | 2014-08-15 15:53:07 +0200 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-08-25 23:32:37 -0700 |
commit | c50d023c91210eb25416bf5f3a4e05353cb16ca4 (patch) | |
tree | 59fb3f9223a8cf058f2bc123120ce0d868478518 /sites/www | |
parent | 1fa69c7003bac49c22721ac694fe399f369ece8a (diff) |
Don't make unnecessary calls to LazyFqdn.__str__.
Before this patch we always tried to expand variables in the
config even if they weren't present. This meant that we made an
expensive call to LazyFqdn.__str__ the first iteration of the expand
loop, stealing precious cpu and user time.
We now check that the expansion actually exists in the config
before expanding it, this will speed up the case where %l is not
used.
This fixes #338
Diffstat (limited to 'sites/www')
0 files changed, 0 insertions, 0 deletions