Avoid Methods


During my day job, I often separate code into functions for purposes of better manageability. Each function is a black box in a sense. It describes what it does, and goes ahead and does the job. In LSL, there are memory limitations. I find that the reverse is more beneficial. You can reclaim more memory by avoiding functions all together and putting the code in- line. A function should only exist if it is being called from two or more places within the code. I was able to reclaim about 6 KB of data tonight. I need to put down my work and breathe in some fresh air. I wonder when the old clouds will go away.
posted by Dedric Mauriac on Woodbridge using a blogHUD : [blogHUD permalink]

Comments are closed.

%d bloggers like this: