Avoid netshared path matching when netshared path is not set
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 3 Sep 2012 12:03:12 +0000 (15:03 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 3 Sep 2012 12:13:08 +0000 (15:13 +0300)
commite663722a79fbd79f3fb4ce81b2bcf94694952eb4
tree8d07a642202027dcceda377a8a67b18615db5916
parentd5dc69c18e5ec79db3c4ab26c948c92e399577be
Avoid netshared path matching when netshared path is not set

- We've been calling matchNetsharedpath() for every single file in
  the transaction regardless of whether %{_netsharedpath} is set or
  not (and almost always it is not), meaning lots of pointless
  strlen() calls and in case of erasure, rpmfi iterations performed.
  Not exactly a massive speedup but a speedup nevertheless.
lib/transaction.c