vgui.register process question

So I need just a tiny bit of clarification and I was wondering if anyone knew the following:

Does vgui.register cache a panel AND contents within it for use later (thus affecting performance from the get-go), or does it only register the panel so that it can be called later (contents not affecting performance up until the point of actually being called)
The reason I ask is because I’m working on optimizations and I need to know the process of vgui.register to help troubleshoot something.

Appreciate the help.

It seems like they are cached. But it can also be that I just misunderstood the code. :smile: