Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.12.0
-
None
Description
The parse tree pattern match algorithm is optimized to search using a key that is made up of a sequence of tokens.
If all keys inserted into the parse tree are only single tokens then the lookup degrades into a linear list search.
The treatment for every address is looked up in the parse tree. If the address is not found the default treatment is used. Lookups that miss end up performing O(N) searches.
The match algorithm should be re-designed to avoid O(N) searches for single token patterns.