aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-01-09 13:53:06 +0100
committerEli Schwartz <eschwartz93@gmail.com>2025-03-09 13:05:08 -0400
commita25e3e58aae434ce0788b947fcbe7ddbbff9f0e2 (patch)
tree67edebec8687ccedafdf0b69dddc2abefb81b79d /docs/markdown
parente3dfcf6cba97f00a51d34f0feb67fe88d098fff5 (diff)
downloadmeson-a25e3e58aae434ce0788b947fcbe7ddbbff9f0e2.zip
meson-a25e3e58aae434ce0788b947fcbe7ddbbff9f0e2.tar.gz
meson-a25e3e58aae434ce0788b947fcbe7ddbbff9f0e2.tar.bz2
interpreter: do not use pathlib in validate_within_subproject
pathlib's implementation of Path iteration is expensive; "foo.parents" has quadratic complexity when building it: return self._path._from_parsed_parts(self._drv, self._root, self._tail[:-idx - 1]) and comparisons performed by "path in file.parents" potentially have the same issue. Use the newly introduced "is_parent_path" function to check whether a file is under a path in the same way. This removes Path from its hottest use. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown')
0 files changed, 0 insertions, 0 deletions