Back to results
US 2009/0254706 A1Published application
Method and system for approximating object sizes in an object-oriented system
AssigneeInternational Business Machines Corporation
InventorsTian Cheng Liu, Qi Ming Teng, Susan P. Paice, Andrew J Schofield
Life of this patent
Estimating the term…
Abstract
A method and system for increasing a system's performance and achieving improved memory utilization by approximating the memory sizes that will be required for data objects that can be deserialized and constructed in a memory cache. The method and system may use accurate calculations or measurements of similar objects to calibrate the approximate memory sizes.
Claims1
A method for calculating memory size requirements of an object, comprising:
- receiving a new object that is to be stored in a memory cache,
- acquiring a known memory size of a similar object with at least one fixed size component,
- using the known memory size of the similar object to approximate a memory size required by the new object by determining that at least one fixed size component of the new object is equivalent in size to a respective fixed size component of the similar object,
- calculating an actual size of all variable sized components of the new object,
- approximating the total size of the new object, and
- storing the new object in the memory cache if there is available space in the memory cache.
3 more elements
Dependencies are inferred from the claim text.