A function with many local variables.
Will a function with many local variables slow the program down since the variables have to be recreated with every call to that function?
1 2 3 4
|
void foo(){
std::string bar[10000] = {/*...*/};
//Do something...
}
|
er...technically... by a few microns of a second...maybe? The variable itself is fine what matters really is the data put into it.
Thanks.
Topic archived. No new replies allowed.