Patent ID: 8015168

Claim:
An article comprising non-transitory machine-readable media embodying instructions that when performed by one or more machines result in operations comprising: obtaining a start index and a length for a subset of a text sequence buffered within a parser; polling a string pool containing a plurality of pooled string objects to determine whether any of the pooled string objects contain the subset of the text sequence buffered within the parser by using the start index and the length; using one of the pooled string objects if it contains the subset of the text sequence, otherwise, initiating a generation of a new pooled string object in the string pool containing the subset of the text sequence; obtaining a second start index and a second length for a second subset of the text sequence buffered within the parser; polling the string pool containing the plurality of pooled string objects to determine whether any of the pooled string objects contain the second subset of the text sequence buffered within the parser by using the second start index and the second length; and using one of the pooled string objects if it contains the second subset of the text sequence, otherwise, initiating a generation of a new pooled string object in the string pool containing the second subset of the text sequence.