Faster sorting algo

This commit is contained in:
Xinchen Hui 2015-01-14 17:22:58 +08:00
parent ade7a41040
commit 2193de0d18
60 changed files with 765 additions and 445 deletions

View file

@ -201,7 +201,7 @@ static void print_modules(void) /* {{{ */
zend_hash_init(&sorted_registry, 50, NULL, NULL, 0);
zend_hash_copy(&sorted_registry, &module_registry, NULL);
zend_hash_sort(&sorted_registry, zend_qsort, module_name_cmp, 0);
zend_hash_sort(&sorted_registry, module_name_cmp, 0);
zend_hash_apply(&sorted_registry, print_module_info);
zend_hash_destroy(&sorted_registry);
}