diff options
author | keios <keios.cn@gmail.com> | 2006-10-03 01:13:49 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 08:03:41 -0700 |
commit | d3717bdf8f08a0e1039158c8bab2c24d20f492b6 (patch) | |
tree | 9c8617cb3f58faace4941a0aa09ea1820d287b7c /include/asm-i386 | |
parent | ffc5089196446c08d9a005cf0dd7cab18d119606 (diff) | |
download | blackbird-op-linux-d3717bdf8f08a0e1039158c8bab2c24d20f492b6.tar.gz blackbird-op-linux-d3717bdf8f08a0e1039158c8bab2c24d20f492b6.zip |
[PATCH] low performance of lib/sort.c
It is a non-standard heap-sort algorithm implementation because the index
of child node is wrong . The sort function still outputs right result, but
the performance is O( n * ( log(n) + 1 ) ) , about 10% ~ 20% worse than
standard algorithm.
Signed-off-by: keios <keios.cn@gmail.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Acked-by: Zou Nan hai <nanhai.zou@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386')
0 files changed, 0 insertions, 0 deletions