Message219874
Hi,
with Python 3.3/3.4, I noticed that there are lots of syscalls on open() - I noticed 2x fstat, 2x ioctl and 2x lseek. This is not noticable when working with small amounts of files on local filesystem, but if working with files via NSF or if working with huge amounts of files, lots of syscalls cost a lot of time. Therefore I'd like to create patches that would reduce the number of syscalls on open().
I've already managed to create first one (attached), that gets rid of one of the fstat calls (all the information are obtained from one fstat call).
I hope this makes sense and that the patch is acceptable. If not, I'll be happy to work on it to make it better. (This is my first real patch for C part of Python, so I hope I did everything right...) |
|
Date |
User |
Action |
Args |
2014-06-06 11:48:05 | bkabrda | set | recipients:
+ bkabrda |
2014-06-06 11:48:05 | bkabrda | set | messageid: <1402055285.47.0.764387439948.issue21679@psf.upfronthosting.co.za> |
2014-06-06 11:48:05 | bkabrda | link | issue21679 messages |
2014-06-06 11:48:05 | bkabrda | create | |
|