This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ntsec patch #4: passwd and group


On Mon, Nov 11, 2002 at 02:56:12PM +0100, Corinna Vinschen wrote:
>On Fri, Nov 08, 2002 at 12:10:13PM -0500, Pierre A. Humblet wrote:
>> Corinna Vinschen wrote:
>> Can you elaborate? Why is it a problem to store them in the 
>> cygheap? 
>> I saw Chris' comments about slowing things down. That makes 
>> sense for programs that never stat or create a file with uid 
>> and gid different from the current user.
>> However when Chris was doing the test this caching mechanism
>> wasn't present yet, stating or creating any file would force
>> a passwd/group reread. So it's more surprising.
>
>AFAIR, Chris was surprised, too.  I don't know more details, though.

There is always a tradeoff between the overhead of ReadProcessMemory and
file I/O.  In this case, I guess file I/O from a file that was in cache
probably won.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]