Skip to content

Drop textual.widget from ChronologicalEntry and Qt/Android cold start - #2256

Merged
trissim merged 1 commit into
mainfrom
perf/qt-drop-textual-widget
Nov 24, 2026
Merged

trissim merged 1 commit into
mainfrom
perf/qt-drop-textual-widget

Conversation

@trissim

@trissim trissim commented Nov 24, 2026

Copy link
Copy Markdown

Summary

Drops textual.widget (and 16 transitive Textual widget/layout/canvas modules) out of toad.qt.android.load_client():

  • ChronologicalEntry (src/toad/entry_placement.py:37) previously inherited textual.widget.Widget solely as a base for its only subclass ErrorNote(ChronologicalEntry, Note), which already inherits Widget through Note.
  • Removing Widget from ChronologicalEntry drops textual.widget completely from Qt/Android cold start (textual.* 108 -> 91, total modules 1992 -> 1975) and retires two KNOWN_LAZY entries (textual.widget -> textual.app and textual.widget -> textual.screen, 19 -> 17) in tools/android/bundle_check.py.

Evidence

  • issubclass(ErrorNote, Widget) == True.
  • toad.qt.android.load_client(): textual.widget loaded False, textual.* 108 -> 91 (-17 modules), total 1992 -> 1975 (-17 modules).

@trissim
trissim merged commit 386587b into main Nov 24, 2026
1 of 2 checks passed
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.

1 participant