Re: optimize the code for searching file in ngx_conf_open_file

2023-10-07 Thread Maxim Dounin
d378168647 > # Parent c073e545e1cdcc736f8869a012a78b2dd836eac9 > optimize the code for searching file in ngx_conf_open_file > > This patch combines two consecutive if statements into one and leveraging > short circuits circuiting. In the current code, we check the lengths of > file names and if they m

optimize the code for searching file in ngx_conf_open_file

2023-10-06 Thread Davood Falahati
# HG changeset patch # User Davood Falahati <0x0dav...@gmail.com> # Date 1696647746 -7200 # Sat Oct 07 05:02:26 2023 +0200 # Node ID ab14ea51bbb15331c9f44f14901d0fd378168647 # Parent c073e545e1cdcc736f8869a012a78b2dd836eac9 optimize the code for searching file in ngx_conf_open_file