[issue20002] Cleanup and microoptimize pathlib
Serhiy Storchaka
report at bugs.python.org
Mon Dec 16 23:06:59 CET 2013
Serhiy Storchaka added the comment:
> Do you have performance numbers that show a significant improvement?
No. The benefit is too small (but theoretically it should be). Some changes
also simplify the code. This is why this patch should be applied now, while
pathlib code is not frozen yet.
For example "drv or root" replaced by "root or drv" because drv is always
false on Unix and both arguments of "or" should be evaluated. This is very
tiny optimization, but it has zero cos if apply it right now.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20002>
_______________________________________
More information about the Python-bugs-list
mailing list