You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(robot): replace pathlib with os.path in file resolution
Replace pathlib.Path operations with os.path string functions
in robot_path.py for significantly faster file resolution:
- Use os.path.join/abspath/isfile/isdir instead of Path objects
- Cache validated sys.path entries lazily (_get_valid_sys_path)
- Separate basedir check from sys.path iteration
- Introduce _PathLike type alias for cleaner signatures
- Fix is_fifo() bug: use os.path.isfile() for __init__.py check
Warm namespace-cache scenario: 19.30s -> 13.84s (-28.3%).
Pathlib calls reduced by 78-100%, posix.stat calls by 35%.
0 commit comments