Bert Wesarg wrote: > On Fri, Feb 29, 2008 at 10:04 PM, Joerg Fischer <[EMAIL PROTECTED]> wrote: > > What searching is concerned, I thought it is better to search > > in a macro string. Suppose we have a thousand tags and we're > > interested in those tags that match a certain pattern, which would be > > roughly a dozen tags. Searching like implemented in the original > > patch, this would mean one search per tag. Searching in a macro > > string, ie, a newline separated list of all tags, this would mean just > > a dozen searches. Moreover, I thought the most common pattern would > > be for completions, in which case one can get the desired tags > > directly without doing searches. This explains the whole thing. > Sorry I can't follow you here. I thought the list*() functions are > built-int MS and operate directly on the tags/tips database.
Sure, they are. It's well possible I got something wrong when I looked at Schwarzenberg's patch. As I understood it, usually you have a tag already and are interested in where to find the definition. Looking up a *given* tag in the hash table construction is fast. But if we are interested in the tags which match certain criteria, it looks cumbersome. All I meant in the quote is I generally prefer to just retrieve all the tags into a macro string and then sort things out in the macro matching the wished tags there instead of writing C code for this searching (like Schwarzenberg's patch does). Cheers, Jörg -- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
