dizag / as3-commons

Automatically exported from code.google.com/p/as3-commons
1 stars 0 forks source link

Usage of flash.utils.describeType can be expensive, consider caching the results. #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using flash.utils.describeType to describe a large class can be improved 
if the results are cached for later use. Borrowing from the Flex SDK, usage of 
DescribeTypeCache and DescribeTypeCacheRecord (minus the Flex SDK 
dependencies) can improved performance.

Original issue reported on code.google.com by pete...@gmail.com on 19 Feb 2010 at 9:45

Attachments:

GoogleCodeExporter commented 9 years ago
Update to DescribeTypeCache to 
getDefinitionByName("mx.binding::BindabilityInfo");

Original comment by pete...@gmail.com on 22 Feb 2010 at 10:46

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, we have no need to cache the describeType result since it is only used once 
for each Type that is created. The Type instances themselves get cached, so for 
each call to Type.forInstance()/forName()/forClass() there's only one call to 
describeType().

Original comment by ihatelivelyids on 10 Nov 2010 at 9:16