Hidden frames will take up as much memory as visible frames.
The primary reason for memory bloat is frequent creation of new strings/tables in OnUpdate handlers.
There's an excellent text in the wiki someplace about how memory is allocated. I wouldn't sweat creating too many static xml/lua elements. I'd be more careful with dynamically created structures like tables and frequently constructed strings.
|