[squeak-dev] How to intern UUIDs? :-)
Marcel Taeumel
marcel.taeumel at hpi.de
Mon Mar 2 15:38:33 UTC 2020
Heyho!
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'.
:-D
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?
Best
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200302/65c42fb5/attachment.html>
More information about the Squeak-dev
mailing list
|