I recently read about how using layer.enabled can shave off loading time for some screens but it also mentioned that it's not always an optimization. Documentation mentions says
Enabling layering for complex QML item hierarchies can sometimes be an optimization.
But it is not clear to me when exactly it's an optimization? What are the best use-cases? Are there any downsides of using it? If not, why is it just not enabled by default?