Don't use exception handling for normal control flow
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 30 Jun 2016 08:03:40 +0000 (10:03 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 30 Jun 2016 08:05:33 +0000 (10:05 +0200)
commit7656941d4d705ee317dacde9991e813860deb6a9
tree8ac19eb3707c1b8ba99ccde82ff57daa0603c1e6
parentcf0d92a2a6c683ac825f095ef4a38daa91c7b3ef
Don't use exception handling for normal control flow

-> Replace buf.index() with buf.find().

Unwinding the stack is expensive and we were
even doing it for the default code path.
deltatar/tarfile.py