Skip to content

Commit

Permalink
Add a doc note that the .find() methods are usually faster than one m…
Browse files Browse the repository at this point in the history
…ight expect.
  • Loading branch information
scoder committed Oct 18, 2020
1 parent eb6df27 commit fd8893c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/xpathxslt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit fd8893c

Please sign in to comment.