comparison xml/en/docs/http/server_names.xml @ 618:2300e4c1a231

Improved paragraph layout in the 'Optimization' section
author Vladimir Homutov <vl@nginx.com>
date Mon, 06 Aug 2012 09:17:12 +0000
parents 130fad6dc1b4
children 656dfb085020
comparison
equal deleted inserted replaced
617:368a449e85b8 618:2300e4c1a231
311 The hashes are bound to the listen ports and every listen port 311 The hashes are bound to the listen ports and every listen port
312 may have up to three hashes: an exact names hash, a wildcard names hash 312 may have up to three hashes: an exact names hash, a wildcard names hash
313 starting with an asterisk, and a wildcard names hash ending with an asterisk. 313 starting with an asterisk, and a wildcard names hash ending with an asterisk.
314 The sizes of the hashes are optimized at the configuration phase so that 314 The sizes of the hashes are optimized at the configuration phase so that
315 a name can be found with the fewest CPU cache misses. 315 a name can be found with the fewest CPU cache misses.
316 </para>
317
318 <para>
316 The exact names hash is searched first. 319 The exact names hash is searched first.
317 If a name is not found using the exact name hash, then the wildcard names hash 320 If a name is not found using the exact name hash, then the wildcard names hash
318 starting with an asterisk is searched. 321 starting with an asterisk is searched.
319 If the name is not found there, the wildcard names hash 322 If the name is not found there, the wildcard names hash
320 ending with an asterisk is searched. 323 ending with an asterisk is searched.
324 </para>
325
326 <para>
321 Searching wildcard names hashes is slower than searching exact name hash 327 Searching wildcard names hashes is slower than searching exact name hash
322 because names are searched by domain parts. 328 because names are searched by domain parts.
323 Note that the special wildcard form “<literal>.example.org</literal>” 329 Note that the special wildcard form “<literal>.example.org</literal>”
324 is stored in a wildcard names hash and not in an exact names hash. 330 is stored in a wildcard names hash and not in an exact names hash.
331 </para>
332
333 <para>
325 Regular expressions are tested sequentially 334 Regular expressions are tested sequentially
326 and therefore are the slowest method and are non-scalable. 335 and therefore are the slowest method and are non-scalable.
327 </para> 336 </para>
328 337
329 <para> 338 <para>