[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] passwd/group inefficiencies

From: Ben Escoto
Subject: Re: [Duplicity-talk] passwd/group inefficiencies
Date: Thu, 07 Aug 2003 22:03:22 -0700

>>>>> "MBP" == Martin Pool <address@hidden>
>>>>> wrote the following on Fri, 8 Aug 2003 13:15:24 +1000

  MBP> While I was experimenting with it, I noticed that it seems to
  MBP> spend an enormous amount of effort pointlessly re-reading the
  MBP> user and password files.  strace -e trace=open shows

Ouch, I didn't realize the password file got reread with every
pwd.getpwuid call.

  MBP> It seems to be a safe assumption that not too many users will
  MBP> be created in the course of a backup run.  Perhaps it would be
  MBP> worth inserting a read-only cache in that file -- just read
  MBP> both files up front and stick them in dictionaries?

Right.  I just filed a bug about it.

Ben Escoto

Attachment: pgp6TmC9g4FyR.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]