[squeak-dev] How to intern UUIDs? :-)
forums.jakob at resfarm.de
Mon Mar 2 17:42:01 UTC 2020
Well I suppose there is just too many of them. :-) To put them in a
registry you'd have to hold onto them. Having them dangling like now-unused
Symbols would be bad.
If you can, I'd say use equality instead of identity.
Marcel Taeumel <marcel.taeumel at hpi.de> schrieb am Mo., 2. März 2020, 16:38:
> The following line made me (somehow) expect to get the same instance of
> UUID as generated just before via "UUID new":
> UUID fromString: '165fea06-1260-bf45-b6e2-43016456a4f8'.
> Testing some object serialization (to/from Json) in combination with an
> IdentityKeyDictionary, I could not find the key, which is that UUID.
> General question: *Would UUID interning make sense?* Could the UUID
> plugin do it? Do plugins have access to object memory?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev