While profiling my app in Scout I noticed it shows that the method JSONObject.internalPut is responsible for allocating 2,355 Dictionary objects.
The method's code is as follows:
internal function internalPut(key:String, value:*):void {
_map[key] = value; // _map is a Dictionary
}
How can we explain this?
_map is a Dictionary object created in JSONObject's constructor without the weakKeys parameter (i.e. it's false)
Can a simple dictionary[key]=value allocate anything??
Thanks for any help
Eyal