Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
pgmmpk committed Jan 17, 2011
1 parent 1c9dbef commit 918c289
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
@@ -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.

0 comments on commit 918c289

Please sign in to comment.