Message165875
For doc purposes:
My first shot is that in my machine the os.rename isn't atomic and this could be generating an overhead somehow. Looking at the code, I found decisions being made on posixmodule.c about what `rename` function should be used:
#ifdef HAVE_RENAMEAT
if (dir_fd_specified)
result = renameat(src_dir_fd, src.narrow, dst_dir_fd, dst.narrow);
else
#endif
result = rename(src.narrow, dst.narrow);
Py_END_ALLOW_THREADS
In my machine the second `rename` is being used. |
|
Date |
User |
Action |
Args |
2012-07-19 20:40:13 | flavio.ribeiro | set | recipients:
+ flavio.ribeiro, ronaldoussoren, r.david.murray, tati_alchueyr, hltbra |
2012-07-19 20:40:13 | flavio.ribeiro | set | messageid: <1342730413.72.0.464161206908.issue15398@psf.upfronthosting.co.za> |
2012-07-19 20:40:13 | flavio.ribeiro | link | issue15398 messages |
2012-07-19 20:40:12 | flavio.ribeiro | create | |
|