Y
Hacker News
new
|
ask
|
show
|
jobs
by
marginalia_nu
1492 days ago
Dunno, it's not unheard of for a program to do the same thing over and over again, sometimes millions of times. Every slow program consists of a bunch of individually fast instructions.
1 comments
zaphar
1492 days ago
If your hot loop is doing configuration setup then your code has bigger problems than this particular pattern.
link
marginalia_nu
1492 days ago
You could also be configuring many things.
link
saturn_vk
1491 days ago
Indeed, but you should probably do that right before looping
link
marginalia_nu
1491 days ago
Right, but if you needed to configure a million different things, wouldn't you also loop the configuration process?
link