Skip to content

Commit a35bf3d

Browse files
Correcting spelling errors throughout project
1 parent 4a75aec commit a35bf3d

File tree

34 files changed

+53
-53
lines changed

34 files changed

+53
-53
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ has to be enabled, either by setting the flag in
2020
executable using `--flag=+serialblockio`.
2121

2222
> :warning: **When enabling `serialblockio`, disable the
23-
> `cabal.project.blockio-uring` import in `cabal.project`!** Unforunately, this
23+
> `cabal.project.blockio-uring` import in `cabal.project`!** Unfortunately, this
2424
> line has to be removed/commented out manually (for now), or the project won't
2525
> build.
2626

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ It has support for:
2626

2727
- Monoidal upserts which combine the stored and new values.
2828

29-
- BLOB storage which assocates a large auxiliary BLOB with a key.
29+
- BLOB storage which associates a large auxiliary BLOB with a key.
3030

3131
- Durable on-disk persistence and rollback via named snapshots.
3232

@@ -78,7 +78,7 @@ LSM-trees can be used concurrently, but with a few restrictions:
7878
cannot be accessed from different processes at the same time.
7979

8080
- Tables can be used concurrently and concurrent use of read operations
81-
such as lookups is determinstic. However, concurrent use of write
81+
such as lookups is deterministic. However, concurrent use of write
8282
operations such as insert or delete with any other operation results
8383
in a race condition.
8484

@@ -318,7 +318,7 @@ The worst-case in-memory size of an LSM-tree is *O*(*n*).
318318
A compact index stores the 64 most significant bits of the minimum
319319
serialised key for each memory page, as well as 1 bit per memory page
320320
to resolve clashes, 1 bit per memory page to mark overflow pages, and
321-
a negligable amount of memory for tie breakers. The total in-memory
321+
a negligible amount of memory for tie breakers. The total in-memory
322322
size of all indexes is approximately 66 bits per memory page.
323323

324324
The total size of an LSM-tree must not exceed 2<sup>41</sup> physical

bench/micro/Bench/Database/LSMTree/Internal/Index/Compact.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ constructIndexCompact (ChunkSize csize) apps = runST $ do
9191
Benchmarks for UTxO keys that are /almost/ uniformly distributed
9292
-------------------------------------------------------------------------------}
9393

94-
-- | UTXO keys are not truly uniformly distrbuted. The 'txId' is a uniformly
94+
-- | UTXO keys are not truly uniformly distributed. The 'txId' is a uniformly
9595
-- distributed hash, but the same 'txId' can appear in multiple UTXO keys, but
9696
-- with a different 'txIx'. In the worst case, this means that we have a clash
9797
-- in the compact index for /every page/. The following benchmarks show

blockio/src-sim/System/FS/BlockIO/Sim.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fromHasFS hfs =
5454
-- | Lock files are reader\/writer locks.
5555
--
5656
-- We implement this using the content of the lock file. The content is a
57-
-- counter, positive for readers and negaive (specifically -1) for writers.
57+
-- counter, positive for readers and negative (specifically -1) for writers.
5858
-- There can be any number of readers, but only one writer. Writers can not
5959
-- coexist with readers.
6060
--

blockio/src/System/FS/BlockIO/API.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ data HasBlockIO m h = HasBlockIO {
111111
-- function in 'IO' much more complex. In particular, if we want to reuse
112112
-- "GHC.IO.Handle.Lock" functionality, then we have to either ...
113113
--
114-
-- 1. Convert there and back between OS-specific file desciptors and
114+
-- 1. Convert there and back between OS-specific file descriptors and
115115
-- 'GHC.Handle's, which is not possible on Windows without creating new
116116
-- file descriptors, or ...
117117
-- 2. Vendor all of the "GHC.IO.Handle.Lock" code and its dependencies
@@ -131,7 +131,7 @@ data HasBlockIO m h = HasBlockIO {
131131
-- | Synchronise file contents with the storage device.
132132
--
133133
-- Ensure that all change to the file handle's contents which exist only in
134-
-- memory (as buffered system cache pages) are transfered/flushed to disk.
134+
-- memory (as buffered system cache pages) are transferred/flushed to disk.
135135
-- This will also update the file handle's associated metadata.
136136
--
137137
-- This uses different system calls on different distributions.

bloomfilter/src/Data/BloomFilter/Hash.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ https://github.com/facebook/rocksdb/blob/096fb9b67d19a9a180e7c906b4a0cdb2b2d0c1f
279279
280280
-}
281281

282-
-- | Evalute 'CheapHashes' family.
282+
-- | Evaluate 'CheapHashes' family.
283283
--
284284
-- \[
285285
-- g_i = h_0 + \left\lfloor h_1 / 2^i \right\rfloor

doc/format-page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ representation gives natural alignment without any padding.
226226

227227
If the blob reference bitmap indicates that there is a blob reference for key i,
228228
then the index in the blob reference array can be found by counting the number
229-
of 1 bits for all bitmap indexes stricly less than i. This can be done
229+
of 1 bits for all bitmap indexes strictly less than i. This can be done
230230
relatively efficiently using the popcount CPU instruction. For example, pages
231231
with up to 64 keys, the bitmap fits into a single 64bit word and thus a single
232232
popcount instruction, (and some bit shifting and masking) is needed to find the

doc/format-run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ vector.
134134

135135
The first 4 bytes (32bit) are a format identifier / format version. This
136136
determines the format of the rest of the header and file.
137-
The format identifier also acts as endianess marker.
137+
The format identifier also acts as endianness marker.
138138
It (and remaining fields) are serialised in native byte order.
139139

140140
The remainder of the header for format 1 consists of:

lsm-tree.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description:
1010
* Basic key–value operations, such as lookup, insert, and delete.
1111
* Range lookups, which efficiently retrieve the values for all keys in a given range.
1212
* Monoidal upserts which combine the stored and new values.
13-
* BLOB storage which assocates a large auxiliary BLOB with a key.
13+
* BLOB storage which associates a large auxiliary BLOB with a key.
1414
* Durable on-disk persistence and rollback via named snapshots.
1515
* Cheap table duplication where all duplicates can be independently accessed and modified.
1616
* High-performance lookups on SSDs using I\/O batching and parallelism.
@@ -47,7 +47,7 @@ description:
4747

4848
* Each session locks its session directory.
4949
This means that a database cannot be accessed from different processes at the same time.
50-
* Tables can be used concurrently and concurrent use of read operations such as lookups is determinstic.
50+
* Tables can be used concurrently and concurrent use of read operations such as lookups is deterministic.
5151
However, concurrent use of write operations such as insert or delete with any other operation results in a race condition.
5252

5353
== Performance #performance#
@@ -172,7 +172,7 @@ description:
172172
An ordinary index stores the maximum serialised key for each memory page.
173173
The total in-memory size of all indexes is proportional to the average size of one serialised key per memory page.
174174
[@CompactIndex@]:
175-
A compact index stores the 64 most significant bits of the minimum serialised key for each memory page, as well as 1 bit per memory page to resolve clashes, 1 bit per memory page to mark overflow pages, and a negligable amount of memory for tie breakers.
175+
A compact index stores the 64 most significant bits of the minimum serialised key for each memory page, as well as 1 bit per memory page to resolve clashes, 1 bit per memory page to mark overflow pages, and a negligible amount of memory for tie breakers.
176176
The total in-memory size of all indexes is approximately 66 bits per memory page.
177177

178178
The total size of an LSM-tree must not exceed \(2^{41}\) physical entries.

prototypes/ScheduledMerges.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ newMergingRun mergeType runs = do
656656
assertST $ length runs > 1
657657
-- in some cases, no merging is required at all
658658
(debt, state) <- case filter (\r -> runSize r > 0) runs of
659-
[] -> let (r:_) = runs -- just re-use the empty input
659+
[] -> let (r:_) = runs -- just reuse the empty input
660660
in return (runSize r, CompletedMerge r)
661661
[r] -> return (runSize r, CompletedMerge r)
662662
rs -> do

0 commit comments

Comments
 (0)