devxlogo

May 22, 1999

Relocating Declarations Can Enhance Performance

On some occasions, the performance boost that can result from moving declarations is quite considerable. Consider this example: void use() { string s1; if (condition == false){ return; //s1 was