diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-10-18 20:30:37 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-10-18 20:30:37 +0200 |
commit | fd8893ccb538e95c5acb2a2b47f0e87003de5b0d (patch) | |
tree | dd752074cbfe033e982f60583cd1129df164d433 | |
parent | eb6df27fc265cea4462f966282a701acdad5d167 (diff) | |
download | python-lxml-fd8893ccb538e95c5acb2a2b47f0e87003de5b0d.tar.gz |
Add a doc note that the .find() methods are usually faster than one might expect.
-rw-r--r-- | doc/xpathxslt.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/xpathxslt.txt b/doc/xpathxslt.txt index 98adc9ea..8b2870e5 100644 --- a/doc/xpathxslt.txt +++ b/doc/xpathxslt.txt @@ -63,6 +63,10 @@ comparison`_ to learn when to use which. Their semantics when used on Elements and ElementTrees are the same as for the ``xpath()`` method described here. +Note that the ``.find*()`` methods are usually faster than the full-blown XPath +support. They also support incremental tree processing through the ``.iterfind()`` +method, whereas XPath always collects all results before returning them. + .. _`performance comparison`: performance.html#xpath |