Skip to content

refactor: improve widget context performance#7107

Closed
Rathoz wants to merge 8 commits into
mainfrom
improve-context-performance
Closed

refactor: improve widget context performance#7107
Rathoz wants to merge 8 commits into
mainfrom
improve-context-performance

Conversation

@Rathoz
Copy link
Copy Markdown
Collaborator

@Rathoz Rathoz commented Feb 17, 2026

Summary

Memory and cycle performance optimization of the widget context. This is achieved by no longer by copying the entire call chain for every new widget, instead just using a linked list.

This imporves performance in 3 areas:

  • No longer need to copy the entire call chain
  • No longer need to store the entire call chain multiple times
  • Faster lookup when using contexts, only checking contexts instead of all widgets

How did you test this change?

Comment thread lua/wikis/commons/Widget.lua Outdated
Comment thread lua/wikis/commons/Widget.lua Outdated
@ElectricalBoy ElectricalBoy force-pushed the improve-context-performance branch from 00ee638 to 37632a5 Compare April 17, 2026 07:58
@ElectricalBoy ElectricalBoy force-pushed the improve-context-performance branch from 43278db to 9622f5c Compare April 17, 2026 08:20
@ElectricalBoy ElectricalBoy force-pushed the improve-context-performance branch from 06de43a to 2ec3f68 Compare April 17, 2026 08:48
@ElectricalBoy
Copy link
Copy Markdown
Collaborator

Obsolete with #7424/#7568
Full removal pending with #7598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants