GH-114847: Speed up `posixpath.realpath()` (#114848)
Apply the following optimizations to `posixpath.realpath()`: - Remove use of recursion - Construct child paths directly rather than using `join()` - Use `os.getcwd[b]()` rather than `abspath()` - Use `startswith(sep)` rather than `isabs()` - Use slicing rather than `split()` Co-authored-by: Petr Viktorin <encukou@gmail.com>
B
Barney Gale committed
abfa16b44bb9426312613893b6e193b02ee0304f
Parent: 9ceaee7
Committed by GitHub <noreply@github.com>
on 4/5/2024, 12:35:01 PM