commit | 3ce9af43bac2fa293f1bf159585ab0e947652314 | [log] [tgz] |
---|---|---|
author | CrazyBolillo <antonio@zoftko.com> | Wed Apr 03 21:32:51 2024 -0600 |
committer | Jacob Walls <jacobtylerwalls@gmail.com> | Sat May 04 17:35:28 2024 -0400 |
tree | 22f922b79c877c830e0202703179f0e16c8798c8 | |
parent | 47c0b8f50a486da2ce05702ee064079ddb0c6423 [diff] |
Improve performance by caching find_spec Certain checkers upstream on pylint like import-error heavily use find_spec. This method is IO intensive as it looks for files across several search paths to return a ModuleSpec. Since imports across files may repeat themselves it makes sense to cache this method in order to speed up the linting process. Closes pylint-dev/pylint#9310.