--- Begin Message ---
You are very right. Unfortunately, there are many situation like this. Consider:

Point allInstances size "101283"
Point allInstances asSet size "11381"

'String' class allInstances size "111492"
'String' class allInstances asSet size “57874"

A lot of duplication around… 

Cheers,
Alexandre


> On 08-01-2020, at 21:42, ducasse <[email protected]> wrote:
> 
> 
> Hi
> 
> I would like know how many instances of Color are instantiated by a theme.
> I would like to know how many times the same color is created.
> 
> I’m creating a theme using a dictionary instead of stupidly returning color. 
> May be like that I can use an LRUCache to see the number of hits.
> 
> I will see if I can instrument Color new. 
> 
> We really need tools that help us measuring things. 
> 
> Any other ideas?
> 
> S.
> 
> 



--- End Message ---

Reply via email to