[Memory usage] How does Figma load components with instance swap properties and parent components with child components that have many variants?

I’m working on a UI kit at work (which I unfortunately cannot share) and I am hoping to better understand how to best structure components on Figma so that they do not require significant memory consumption. We are running into problems where our prototypes are loading really slowly and I think this might be because the current way we are building components is very memory intensive.

I am hoping to better understand specifics about how Figma loads in components to make better decisions about how to structure the components of the UI Kit. According to a comment in this thread, when you make an instance of a component, Figma loads in the entire variant set of the component.

I’m wondering how Figma behaves or loads in components in the following scenarios:

  1. If a parent component has a child component with many variants, do all the variants of the child component get loaded in when an instance of the parent component is created?
  2. How does Figma load components with an instance swap property? If an instance of such a component is created, do all the layers of the preferred instances set up in the instance swap property get loaded in?

Thanks in advance.