View Single Post
Old 01-07-2016, 06:04 AM   #17
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 581
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by eschwartz View Post
With the extra (wasted?) stat calls, you might actually lose time. I'm not sure if os.stat is faster than os.chmod, if not then you always lose.
My off-the-cuff guess would be that there won't be much difference since each disk block of a directory will contain several entries, so several directory updates will typically translate into a single disk write later on, which will be the main efficiency consideration. So yes, it sounds to me like an "always-lose" situation.

Last edited by Phssthpok; 01-07-2016 at 06:06 AM.
Phssthpok is offline   Reply With Quote