What are some hints or tips on writing efficient functions? I read about converting the code to assembly, and I've also read about the stack and functions. However, I fail to understand how data stored higher can be accessed before the end on a FIFO stack, as any local variable can be accessed at any point in scope. Obviously I'm misunderstanding something.
seanbp 4 Junior Poster
Recommended Answers
Jump to PostStep 1. Understand the problem thoroughly.
Step 2. Realize that I was really serious about step 1, and go back and understand the problem even more thoroughly.
Step 3. Write the clearest, most straightforward program you can that solves the problem correctly.
Step 4. Measure your program's …
Jump to PostYour question is too vague and I think arkoenig and firstPerson's answers are quite good instructions for the "generic" small-code performance testing and optimization.
Overall, people usually talk about three levels of optimization: macro-, micro-, and nano-optimization. You want to proceed through them in that order. Macro-optimization is about …
All 7 Replies
arkoenig 340 Practically a Master Poster
VernonDozier commented: Good advice. +11
seanbp 4 Junior Poster
arkoenig 340 Practically a Master Poster
mrnutty 761 Senior Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
mrnutty 761 Senior Poster
vijayan121 1,152 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.