View Single Post
_Master_
Senior Member
Join Date: Dec 2006
Old 10-06-2007 , 06:20   Re: [TUT/INFO] set_tasks: when they are and when they aren't necessary
Reply With Quote #21

Quote:
If it's used more than once in the script, the data only appears in memory once. If you use the define, the memory is allocated for each time it's referenced.
It's optimized for memory consumption not for speed.
The macros are replaced at compile-time so even if the same data is held multiple times, it resides in the same segment thus improving RT efficiency.

I do believe that in terms of HL scripting optimizations should be done for speed rather than memory consumption.
_Master_ is offline