Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
Go implementation of Tim Peter's mergesort sorting algorithm. | ||
timsort | ||
======= | ||
|
||
**timsort** is a Go implementation of Tim Peters's mergesort | ||
sorting algorithm. | ||
|
||
For many input types its 2-3 times faster than Go's built-in sorting. | ||
|
||
This implementation was derived from Java's TimSort object by Josh Bloch, | ||
which, in turn, was based on the original code by Tim Peters: | ||
|
||
http://svn.python.org/projects/python/trunk/Objects/listsort.txt | ||
|
||
TODO: more testing | ||
TODO: benchmarking | ||
DONE: try different values for MIN_MERGE contstant (original Tim's code used 64, | ||
while java code uses 32) | ||
TODO: try replacing stackLen computation with simple constant (as in original Tim's code) | ||
* TODO: more testing | ||
* TODO: benchmarking | ||
* DONE: try different values for MIN_MERGE contstant (original Tim's code used 64, while java code uses 32) | ||
* TODO: try replacing stackLen computation with simple constant (as in original Tim's code) | ||
|
||
Mike K. | ||
|