…Or vice versa. Memoisation is another option for those doing optimisation, and unlike the others you can find on the ActionScript Optimisations page, this one is more algorithmic than syntactical in nature.
In cases where you call an expensive function multiple times with the same parameters, you can cache the results of that function call using the parameters as a dictionary/hashtable key.
Go get the full story.
Related Articles
No user responded in this post
Leave A Reply
Please Note: Comment moderation maybe active so there is no need to resubmit your comments