generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: A stupid question

Previous Thread :: Next Thread 
RawrBot is not online. RawrBot
Joined: 22 Aug 2008
Total Posts: 832
12 Jul 2011 03:26 PM
I know this probably doesn't matter but...

Which is faster/more efficient(in theory), referring to a brick by its full name, or to a variable attached to it?

print(workspace.Brick)-----------This?

or

local a = workspace.Brick

print(a)---------------------------Or this?

--Probably very complicated and very simple to answer O.o paradox
Report Abuse
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
12 Jul 2011 03:30 PM
The first one is less letters, but if you were referring to it multiple times, then creating a variable could be less letters.
Report Abuse
RawrBot is not online. RawrBot
Joined: 22 Aug 2008
Total Posts: 832
12 Jul 2011 03:34 PM
I don't think less letters or not matters. It's the action the computer does that matters.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
12 Jul 2011 03:35 PM
Since you create a variable to reference the namespace for the object, I'd assume the variable is less efficient for the computer.
But WE are humans. We love shortcuts. :3


      ~~~ AFF ~~~
Report Abuse
RawrBot is not online. RawrBot
Joined: 22 Aug 2008
Total Posts: 832
12 Jul 2011 03:38 PM
@Agent I was thinking the same thing. I agree we love shortcuts xD you gave the perfect answer, thanks man.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image