mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Faster sorting algo
This commit is contained in:
parent
ade7a41040
commit
2193de0d18
60 changed files with 765 additions and 445 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue