Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
2003253
Topic
192524
Board
Development & Technical Discussion
Re: Fixed length loops for scripts
by
TierNolan
on
02/05/2013, 09:02:15 UTC
Quote from: nybble41 on May 02, 2013, 12:41:16 AM
The savings from that approach seem negligible.
Running a loop 100 times is slower than just multiplying all the maximum loop lengths in the script. However, specifying a cost per operation and failing validation if it goes over the limit works too.