Differences

This shows you the differences between two versions of the page.

guide:optimize [2008/03/28 16:28]
james created/moved to guide
guide:optimize [2009/02/25 10:27] (current)
128.61.191.50
Line 88: Line 88:
    * in ASK, never use "FORWARD n", or "FD n", use "JUMP n", instead (for arcane reasons)     * in ASK, never use "FORWARD n", or "FD n", use "JUMP n", instead (for arcane reasons)
    * avoid slow reporters, e.g., reduce use of DISTANCE, TOWARDS, and FACE, where possible     * avoid slow reporters, e.g., reduce use of DISTANCE, TOWARDS, and FACE, where possible
 +    * if using in-radius or in-cone for very large distances, use with [distance myself < some-distance], this is because in-radius and in-cone query the patches in the area of interest and then return turtles-here, this is useful if the number of turtles is not that large and the distance of interest is.
    * reduce user-defined procedure and reporter call overhead in inner loops by "inlining" the procedure actions or reporter expressions, where possible. DO NOT DO THIS TOO EARLY!     * reduce user-defined procedure and reporter call overhead in inner loops by "inlining" the procedure actions or reporter expressions, where possible. DO NOT DO THIS TOO EARLY!
    * Avoid overhead of creating and destroying turtles, if possible.     * Avoid overhead of creating and destroying turtles, if possible.
 
guide/optimize.txt · Last modified: 2009/02/25 10:27 by 128.61.191.50
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki