Method to reduce wasted character data areas of java strings
AssigneeInternational Business Machines Corporation
InventorsKiyokuni Kawachiya, Kazunori Ogata, Tamiya Onodera
Life of this patent
Estimating the term…
Abstract
A string handling method, program, and information processing apparatus capable of reducing the amount of data stored in a storage. An information processing apparatus handles strings. The information processing apparatus includes a storage storing a group of strings including a plurality of strings each of which consists of a plurality of pieces of character data, a reference section which refers to a particular string in the group of strings, a character data detecting section which detects character data that is not referenced as the particular string in the group of strings, and a character data deleting section which deletes the detected character data from the group of strings.
Claims8
An apparatus comprising:
- a non-transitory computer readable medium storing usable program code to perform the steps of:
- referring to a first particular string in a group of strings, the group of strings including a plurality of strings each of which consists of a plurality of pieces of character data;
- detecting a first string and a second string whose front-end string including a first piece of character data is identical to a back-end string of the first string including a last piece of character data among the group of strings;
- and
- concatenating in the group of strings the first string with the second string by unifying the back-end string with the front-end string.
A computer program embodied in a non-transitory computer readable memory for causing a computer having a storage storing a group of strings including a plurality of strings each of which consists of a plurality of pieces of character data to handle the strings, the computer program causing the computer to perform the steps of:
- referring to a first particular string in the group of strings;
- detecting a piece of character data that is not referenced as the particular string among the group of strings independent of frequency of string use;
- and
- deleting the detected piece of character data from the group of strings.
An information processing apparatus including storage, the storage storing a group of strings including a plurality of strings each of which consists of a plurality of pieces of character data and handles the strings, the apparatus comprising:
- a non-transitory computer readable medium storing usable program code, the program code including:
- a reference section referring to a particular string in the group of strings;
- a first detecting section detecting a first string and a second string whose front-end string including a first piece of character data is identical to a back-end string of the first string including a last piece of character data among the group of strings;
- and
- a concatenating section concatenating in the group of strings the first string with the second string by unifying the back-end string with the front-end string.
Dependencies are inferred from the claim text.