Skip to content

Cache repeated singleton/accessor calls in LLPanel::initPanelXML#5835

Merged
marchcat merged 1 commit into
release/26.3from
marchcat/panel-xml-opt
May 24, 2026
Merged

Cache repeated singleton/accessor calls in LLPanel::initPanelXML#5835
marchcat merged 1 commit into
release/26.3from
marchcat/panel-xml-opt

Conversation

@marchcat
Copy link
Copy Markdown
Contributor

Part of #4893: optimization unrelated to async inventory.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Caches repeated singleton accessors and node name lookups inside LLPanel::initPanelXML to avoid redundant calls during panel XML initialization.

Changes:

  • Replaces local xml_filename copy with direct use of mXMLFilename.
  • Caches LLUICtrlFactory instance, node name, and child registry into local variables.
  • Uses cached references in subsequent calls instead of repeated getInstance()/instance() calls.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marchcat marchcat merged commit 4125091 into release/26.3 May 24, 2026
16 checks passed
@marchcat marchcat deleted the marchcat/panel-xml-opt branch May 24, 2026 05:14
@github-actions github-actions Bot locked and limited conversation to collaborators May 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants