×

String pooling

  • US 8,015,168 B2
  • Filed: 11/12/2007
  • Issued: 09/06/2011
  • Est. Priority Date: 11/12/2007
  • Status: Active Grant
First Claim
Patent Images

1. 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.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×