Thread: F2 Cleaner
View Single Post
  #19  
Old 06-12-2010, 02:27 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Tigairius View Post
For example, if you have a constant number, 575, you should just write 575 instead of calculating the value every single time. As Crow said, calculating 10^2.76 each time takes up more processing time than is necessary.
Because it is a static expression, the value will be pre-calculated during folding at compile time. It won't have any impact on script execution because it has already been substituted for it's actual value by the time it runs.
Quote:
Originally Posted by cbk1994
Should definitely be done, people like Skyld and possibly Tig have access to the scripts for that.
Yes I am sure this would be possible
__________________
Skyld
Reply With Quote