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

add describeTypeJSON to get class definition #19

Closed
MindScriptAct opened this issue Jul 16, 2012 · 1 comment
Closed

add describeTypeJSON to get class definition #19

MindScriptAct opened this issue Jul 16, 2012 · 1 comment

Comments

@MindScriptAct
Copy link
Owner

  • dynamically check if player supports describeTypeJSON .
  • if it is supported use it to read class inject points.
  • if not - fall back to flash.utils.describeType();
@MindScriptAct
Copy link
Owner Author

I tested describeTpeJSON.

On its own, it is 10 times faster, but then you parse metadata stuff, it becomes only 4-5 times faster then describeType().

[Inject] metadata scanning in mvcExpress is fast.... 0.22ms per class, and it is done only once per class per application lifetime.

describeTypeJSON adds some mess to the code... I don't think it is worth it.

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