If I was using the YUI to show a dialog which I might want to appear, say, five times in the course of a page, would it be better to:
A) Instantiate one, and then show and hide it several times? or
B) Instantiate a new one each time it's to be displayed, then dispose of it?
First option seems like it'd be faster. Second option seems like it'd require fewer resources.
Thoughts?