Lately, I've been trying to hone in on aspects of Style that effect my program's performance, and ignoring stylistic niceties in the sake of meeting deadlines. For example, Local Variables: if they work and don't cause race conditions, what the hey? I used to break my back to use as few locals as possible, but after Profiling some vi's, I've found I can live with 50mS delay here and there. Same for the "one page diagram" idea. Most of my programs take up two screens, while still using several sub-vi's! I've even gone back to using sequences after swearing them off a year ago. Where's the break-even point of using excellent Style and keeping your job?
Now for a question that I can't s
eem to profile my way into an answer::
Most of my programs run in one large loop and use Cases to run events. Many items require constants. Does it make much difference to place these constants OUTSIDE the loop? I'm assuming a constant of 12093.0092 may take more time and memory than, say a boolean True constant or a Not A Path constant. Any thoughts?
Richard