Skip to content
Commit d3717bdf authored by keios's avatar keios Committed by Linus Torvalds
Browse files

[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: default avatarkeios <keios.cn@gmail.com>
Acked-by: default avatarMatt Mackall <mpm@selenic.com>
Acked-by: default avatarZou Nan hai <nanhai.zou@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ffc50891
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment