Skip to content

Commit 127962d

Browse files
committed
Fixup README
1 parent addc46f commit 127962d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/UnitTesting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Unit tests
22

33
on:
4+
- push
45
- pull_request
56

67
jobs:

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ julia> it = KWayMerger([1]);
3333
julia> peek(it)
3434
(1, 1)
3535

36-
julia> iterate(it); peek(it) === nothing
36+
julia> first(it)
37+
(1, 1)
38+
39+
julia> peek(it) === nothing
3740
true
3841
```
3942

@@ -48,6 +51,7 @@ When merging I iterables with a total length of N:
4851

4952
Therefore, merging I sorted iterables with N total elements using a KWayMerger therefore takes O(N * log(I)) time.
5053
It is generally faster than flattening the iterators and sorting, when I << N.
54+
Note that Julia uses radix sort for integers, which sorts in O(N), and therefore usually beats a k-way merge.
5155

5256
## Contributing
5357
We appreciate contributions from users including reporting bugs, fixing

0 commit comments

Comments
 (0)