summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSeth M Morton <seth.m.morton@gmail.com>2017-01-26 23:33:54 -0800
committerSeth M Morton <seth.m.morton@gmail.com>2017-01-26 23:33:54 -0800
commitd8b1d363b1f31a7fa0110e20e30f8e6eece96880 (patch)
treeeec81af69192be454d786d2df077ac65fe66fb46 /docs
parent47705d0fb2e716e643d8f927e206cbda33ab890a (diff)
downloadnatsort-d8b1d363b1f31a7fa0110e20e30f8e6eece96880.tar.gz
Added how it works doctests to TravisCI.
Diffstat (limited to 'docs')
-rw-r--r--docs/source/howitworks.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/source/howitworks.rst b/docs/source/howitworks.rst
index 396f162..a59b173 100644
--- a/docs/source/howitworks.rst
+++ b/docs/source/howitworks.rst
@@ -213,10 +213,11 @@ Here are some timing results run on my machine:
What can we learn from this? The ``try: except`` method (arguably the most "pythonic"
of the solutions) is best for numeric input, but performs over 5X slower for non-numeric
-input. Conversely, the regular expression method, though slower than ``try: except`` for both input types,
-is more efficient for non-numeric input than for input that can be converted to an ``int``. Further, even though
-the regular expression method is slower for both input types, it is always at least
-twice as fast as the worst case for the ``try: except``.
+input. Conversely, the regular expression method, though slower than ``try: except`` for
+both input types, is more efficient for non-numeric input than for input that can be
+converted to an ``int``. Further, even though the regular expression method is slower
+for both input types, it is always at least twice as fast as the worst case for the
+``try: except``.
Why do I care? Shouldn't I just pick a method and not worry about it? Probably. However,
I am very conscious about the performance of :mod:`natsort`, and want it to be a true