摘要 |
A method (100) and device (200) increase efficiency of a data compression encoder or decoder by testing whether an input string is a maximum length string upon successful match of the input string in a dictionary. Where the length of the input string is equal to a predetermined maximum string length, the string matching process is terminated without processing an additional input character that would cause an unsuccessful string match. The maximum length string test is accomplished by testing a string length counter for the value zero, where the string length counter is set to the maximum string length value when the input string is NULL or alternatively is set to the maximum string length minus one when the input string is a one character string, and the string length counter is decremented for each input character that extends the matched input string.
|