Jump to content
Search Community

Why is masterList cached in a local var?

Jeremy Rudd test
Moderator Tag

Recommended Posts

Hi all,

 

This is more of a technical question, but anyways. I noticed that the "masterList" Dictionary object is cached in a local var before iterating through it. Why is this? Is there any speed benefit?

 


var ml:Dictionary = masterList;
var tgt:Object;
for (tgt in ml) {

 

I was just curious if this was needed.

 

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...