View Single Post
03-09-12, 06:08 AM   #30
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Recycling config widgets is more trouble than it's worth, IMO. A checkbox does not require that much memory in the first place, and it's all static, so unless the user's machine is struggling to run WoW at all, having 10, 100, or even 1000 checkboxes won't have any observable performance impact. Even if you can "gain" a few KB of memory by reusing everything all the time, the user won't ever notice any benefit, and you'll just have made your code more complex (and thus more of a pain to modify and debug later) for no reason other than your own desire to micro-optimize everything.

Remember...
The First Rule of Program Optimization: Don't do it.
The Second Rule of Program Optimization (for experts only!): Don't do it yet.
  Reply With Quote