Skip to content

Commit 2059e19

Browse files
authored
Merge pull request #133 from jwilk-forks/spelling
Fix a few typos in docs
2 parents 04bed4d + f930bc4 commit 2059e19

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/performance-scale.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ winnings which would conclude incorrectly an expected value of zero.
248248
More practically, consider the list data type in CPython. Lists grow and shrink
249249
as necessary but the underlying implementation is restricted to static
250250
allocations. For this reason, lists are often over-allocated so that most
251-
appends may occur immediately. Occassionally, the list must be reallocated and
251+
appends may occur immediately. Occasionally, the list must be reallocated and
252252
possibly copied, which takes linear time. If we sampled performance by
253253
initializing lists of various sizes and appending an element, we may never
254254
observe a resize operation and so over-estimate performance.

docs/performance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ were found with various list, set, and dict implementations.
4141
Implemented in C. MIT License. Last updated April, 2017. `bintrees on
4242
PyPI`_
4343

44-
3. *sortedmap* -- Provides a fast, C++ implemenation for dict data types. Uses
44+
3. *sortedmap* -- Provides a fast, C++ implementation for dict data types. Uses
4545
the C++ standard library `std::map` data structure which is usually a
4646
red-black tree. Last updated February, 2016. `sortedmap on PyPI`_
4747

docs/pycon-2016-talk.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ sorted collections`_ library with `sorted list`_, `sorted dictionary`_, and
105105
C-extensions. It’s Python 2 and Python 3 compatible. It’s fully-featured. And
106106
it’s extensively tested with 100% coverage and hours of stress.
107107

108-
`Performance`_ is a feature. That means graphs. Lot’s of them. There are 189
108+
`Performance`_ is a feature. That means graphs. Lots of them. There are 189
109109
performance graphs in total. Let’s look at a few of them together.
110110

111111
Here’s the performance of adding a random value to a sorted list. I’m comparing
@@ -127,7 +127,7 @@ improves with scale. You can see it there in blue. It starts in the middle of
127127
the pack and has a lesser slope than competitors.
128128

129129
In short, `Sorted Containers`_ is kind of like a `B-tree`_ implementation. That
130-
means you can configure the the fan-out of nodes in the tree. We call that the
130+
means you can configure the fan-out of nodes in the tree. We call that the
131131
load parameter and there are extensive performance graphs of three different
132132
`load parameters`_.
133133

@@ -146,11 +146,11 @@ for most scenarios. It’s a very sane default.
146146

147147
In addition to comparisons and load-factors, I also `benchmark
148148
runtimes`_. Here’s CPython 2.7, CPython 3.5 and `PyPy`_ version 5. You can see
149-
where the the just-in-time compiler, the jit-compiler, kicks in. That’ll make
149+
where the just-in-time compiler, the jit-compiler, kicks in. That’ll make
150150
`Sorted Containers`_ another ten times faster.
151151

152152
Finally, I made a survey in 2015 on `Github`_ as to how people were using
153-
sorted collections. I noticed patterns like priority queues, mutli-sets,
153+
sorted collections. I noticed patterns like priority queues, multi-sets,
154154
nearest-neighbor algorithms, etc.
155155

156156
This is the priority queue workload which spends 40% of its time adding

docs/sf-python-2015-lightning-talk.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Containers. The right answer is pure-Python. It's Python 2 and Python 3
3838
compatible. It's fast. It's fully-featured. And it's extensively tested with
3939
100% coverage and hours of stress.
4040

41-
Performance is a feature. That means graphs. Lot's of them. Here's the
41+
Performance is a feature. That means graphs. Lots of them. Here's the
4242
performance of creating a sorted list from random numbers. I benchmark Sorted
4343
Containers against every worthy competitor I can find.
4444

0 commit comments

Comments
 (0)