Skip to main content
brian_thomas2
Adobe Employee
Adobe Employee
November 3, 2009
Answered

Function Performance Rules

  • November 3, 2009
  • 1 reply
  • 707 views

Just read an article that contains some interesting AS3 performance conclusions that seem like they'd make good FlexPMD rules:

http://jacksondunstan.com/articles/413

“If you want speed you should not be using plain functions, local functions, or Function variables. This should give some hint as to the speed of Flash’s package-level functions like getTimer() . Further, you can get big speedups by foregoing static functions, calls trough an interface, and calls throughsuper, especially if you’re going to be using that convenience a lot. The rest of the functions are as fast as you can get. Don’t let anyone tell you that access specifiers matter, calling through this adds needless slowdown, or overriding is handy but slow. It is handy, but it’s not slow.”

Do these recommendations fit the bill for FlexPMD rules? If so - I'd be happy to write it up in JIRA.

Brian

This topic has been closed for replies.
Correct answer ledroff

Excellent input Brian ! Thanks a lot.

Yes please fire up Jira enhancement requests

1 reply

ledroff
Adobe Employee
ledroffCorrect answer
Adobe Employee
November 3, 2009

Excellent input Brian ! Thanks a lot.

Yes please fire up Jira enhancement requests

brian_thomas2
Adobe Employee
Adobe Employee
November 3, 2009

Done - see: https://bugs.adobe.com/jira/browse/FLEXPMD-98

If you like the idea, please take the time to log in and vote for it!

Thanks,

Brian