| |
| | The Old New Thing : The cost of trying too hard: String searching |
 | | More advanced string searching algorithms can take advantage of characteristics of the target string, but in the general case, where the target string is of moderate size and is not pathological, all that the fancy search algorithms give you over the naive search algorithm is a somewhat smaller multiplicative constant. |
 | | When WUA searches for updates, it actually uses a highly optimized protocol that only picks up new and changed updates, prunes out entire branches of updates based on OS and other applicability rules, omits languages that are not installed on the local machine, and then caches the results in a client-side database. |
 | | In the vast majority of real-world cases, the time taken to blaze through the search string looking for all the occurences of the first letter in the target string is _far_ less than the time it takes to scan the string, build the index, blah blah blah. |
| blogs.gotdotnet.com /oldnewthing/archive/2006/01/19/514834.aspx (2316 words) |
|