Implement cache for pwd.getpwuid() and grp.getgrgid()
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 23 Jun 2016 08:08:16 +0000 (10:08 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 23 Jun 2016 09:17:07 +0000 (11:17 +0200)
commit9ef1fb87c299841d91266bb9499d27f9bf0cfc8f
tree5d31c36dd274e4156bbea08d959de94c354fd991
parentab7e7465f5f083995c26cf61b11b4974d1464c71
Implement cache for pwd.getpwuid() and grp.getgrgid()

Those functions always parse /etc/passwd and we
look up the owner for each file we backup.

This change is only relevant when creating full backups.
Speed up with ~1.000.000 emails is 11%.
deltatar/tarfile.py