summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2023-04-23 10:37:15 -0400
committerGitHub <noreply@github.com>2023-04-23 10:37:15 -0400
commite49bfaa2229e2ce27b7a212ad3ebe378dc17f613 (patch)
tree64204934c89ecde7607debf999ccaa7b90603002 /ChangeLog
parentf4a1168c0fda96b6bb7d01acb83b39405e7fe07a (diff)
downloadastroid-git-e49bfaa2229e2ce27b7a212ad3ebe378dc17f613.tar.gz
Reduce file system access in `ast_from_file()` (#2135)
get_source_file() is needed to resolve relative to absolute paths, but is not needed before getting a cache hit. This had the potential to issue tens of thousands of repetitive os.path.exists() calls.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog2
1 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7960ea2e..45d7307d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,8 @@ Release date: TBA
Closes #1780
+* Reduce file system access in ``ast_from_file()``.
+
* ``nodes.FunctionDef`` no longer inherits from ``nodes.Lambda``.
This is a breaking change but considered a bug fix as the nodes did not share the same
API and were not interchangeable.