The official NGINX Open Source repository.
Go to file
Maxim Dounin c93cb45ae3 Core: changed ngx_queue_sort() to use merge sort.
This improves nginx startup times significantly when using very large number
of locations due to computational complexity of the sorting algorithm being
used: insertion sort is O(n*n) on average, while merge sort is O(n*log(n)).
In particular, in a test configuration with 20k locations total startup
time is reduced from 8 seconds to 0.9 seconds.

Prodded by Yusuke Nojima,
https://mailman.nginx.org/pipermail/nginx-devel/2023-September/NUL3Y2FPPFSHMPTFTL65KXSXNTX3NQMK.html
2023-10-18 04:30:11 +03:00
auto SSL: avoid using OpenSSL config in build directory (ticket #2404). 2023-06-21 01:29:53 +03:00
conf MIME: added image/avif type. 2021-10-25 20:49:15 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2023-07-24 18:04:41 +03:00
docs nginx-1.25.2-RELEASE 2023-08-15 20:03:04 +03:00
misc Updated OpenSSL used for win32 builds. 2023-08-15 18:10:50 +03:00
src Core: changed ngx_queue_sort() to use merge sort. 2023-10-18 04:30:11 +03:00
.hgtags release-1.25.2 tag 2023-08-15 20:03:04 +03:00