diff options
| author | Raphael Gaschignard <raphael@makeleaps.com> | 2019-11-26 14:41:48 +0900 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-11-26 08:41:39 +0100 |
| commit | 5cdefb0d278dfe80a662156a942472794df5ca67 (patch) | |
| tree | d8e6916844fdb608f5fba3a822f9a050886b2226 /astroid/builder.py | |
| parent | 130406463f3c978571a7aca6e33c985e17848f21 (diff) | |
| download | astroid-git-5cdefb0d278dfe80a662156a942472794df5ca67.tar.gz | |
Avoid a call to `getcwd` if it is not needed
When profiling locally, approximately 7% of a full pylint run is spent in `os.getcwd`, despite its value effectively not being used if `context_file` is `None`. A quick grep over this project and others seem to indicate that `context_file` is rarely used, so this should almost entirely get rid of this system call.
Diffstat (limited to 'astroid/builder.py')
0 files changed, 0 insertions, 0 deletions
