Invention Grant
- Patent Title: Densely stored strings
-
Application No.: US14863189Application Date: 2015-09-23
-
Publication No.: US09720666B2Publication Date: 2017-08-01
- Inventor: Charles J. Hunt , Aleksey Shipilev , Brent A. Christian , Xueming Shen , Roger Stephen Riggs , Vladimir Kozlov
- Applicant: Oracle International Corporation
- Applicant Address: US CA Redwood Shores
- Assignee: ORACLE INTERNATIONAL CORPORATION
- Current Assignee: ORACLE INTERNATIONAL CORPORATION
- Current Assignee Address: US CA Redwood Shores
- Agency: Park, Vaughan, Fleming & Dowler LLP
- Main IPC: G06F17/00
- IPC: G06F17/00 ; G06F7/00 ; G06F9/45 ; G06F12/02

Abstract:
The disclosed embodiments provide a system for densely storing strings within the memory of a software program. During operation, the system receives a set of characters to be stored in a string, wherein each character is encoded using a multi-byte public encoding. The system then stores the set of characters in the string at least in part by performing the following steps. The system determines whether every character of the set can be encoded using a first private encoding that consumes less space per character than the multi-byte public encoding. Responsive to determining that every character of the set can be encoded using the first private encoding, the system stores a particular value associated with the first private encoding in a particular field of the string. The system then stores the set of characters in the string in the first private encoding.
Public/Granted literature
- US20170083300A1 DENSELY STORED STRINGS Public/Granted day:2017-03-23
Information query