skysiders commented on PR #3894:
URL: https://github.com/apache/hive/pull/3894#issuecomment-1373394928

   Hi @cnauroth ,I thought about this question again, and I think that compared 
with FileSystem.mkdirs(fs,path,perms) mentioned by you, my patch may be a 
little faster. The mkdirs(fs,path,perms) function does two things, first 
creating a file with default permissions and then assigning permissions to that 
file. What I do can be divided into three steps, first create the file, then 
determine if the file permissions are correct, if not set permissions. I think 
the reason for the speed here is that the permission judgment is faster than 
setting the permission directly, only if the file itself has the same 
permission and the permission to set, it can be about 4 times faster. According 
to what you said, this patch should modify all mkdirs(path,perms) into 
mkdirs(fs,path,perms), but as I just said, I think it will be a little slower 
than my current patch, but this kind of file creation is also rigorous.I‘m 
looking forward to your reply.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to