Reusing immutable objects
When a request is made to create a new immutable object a check is carried out of existing objects to determine if there is a matching object which already exists. If an identical object does exist then a pointer to that object is returned instead of generating a new object thereby saving memory. In...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | When a request is made to create a new immutable object a check is carried out of existing objects to determine if there is a matching object which already exists. If an identical object does exist then a pointer to that object is returned instead of generating a new object thereby saving memory. In the case of accessing a set of records in a database (72, 74, 76 figure 4) immutable objects are created as required (108-118 figure 5) the number of which is reduced due to the reuse of objects (110 and 112 figure 5). |
---|