You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the UDT* value classes are subclassed by Pure* and Recyclable* classes.
The Recyclable* classes reuse existing instances, resetting their raw value on every "allocation".
Use-Case
There are use-cases where the same, small number of values are repeated many times.
In these cases, it might be better to keep a cache of previously created instances, similar to String.intern(). (And the UDTString subclass could actually intern the raw value as well.)
Currently, the
UDT*
value classes are subclassed byPure*
andRecyclable*
classes.The
Recyclable*
classes reuse existing instances, resetting their raw value on every "allocation".Use-Case
There are use-cases where the same, small number of values are repeated many times.
In these cases, it might be better to keep a cache of previously created instances, similar to
String.intern()
. (And theUDTString
subclass could actually intern the raw value as well.)Proposed API
The text was updated successfully, but these errors were encountered: