Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Mar 21, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Update to DescribeTypeCache to 
getDefinitionByName("mx.binding::BindabilityInfo");

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

Attachments:

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant