Issue #16581 has been updated by David Carr.

Thanks for looking into this, Josh.  I tried the code you provided with 
win32-security 0.1.4.  The performance is very similar for both the domain user 
and local user.  On that particular machine, I can get the value from 
Win32::Security::SID.new(<username>).to_s 10000 times in roughly 3 seconds.  I 
also tried it with specifying a "DOMAIN\" prefix, "MACHINE\" prefix, and 
calling it for the Administrators group.  All parameters resulted in equivalent 
performance.
----------------------------------------
Bug #16581: Windows file permission management very slow
https://projects.puppetlabs.com/issues/16581#change-73761

Author: David Carr
Status: Accepted
Priority: Normal
Assignee: Josh Cooper
Category: windows
Target version: 2.7.20
Affected Puppet version: 2.7.6
Keywords: windows file permissions user group sid slow performance
Branch: 


I'm trying to write some Puppet manifests that support both Darwin and Windows. 
 So far, it's been going pretty well, but I noticed that my manifests were 
running much more slowly on Windows.  I believe that the majority of the 
slow-down is caused by File resources with owner/group/mode specified.  I'm 
able to reproduce a substantial performance difference between a manifest to 
create a single empty directory with/without permissions specified.  Manifests 
and output from "puppet apply --debug --verbose --no-daemonize --summarize 
--color=false --onetime MANIFEST" attached.  The machine I'm running these on 
is a Dell Latitude E6500 running Windows 7 64-bit with Puppet 3.0.0-rc7 
installed.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to