Repository navigation
Coalesce startup setting effects, hoist fragment toggles, and fix Android build keystore resolution - #2332
Merged
Conversation
…and fix empty XDG_CONFIG_HOME in Android APK build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Numbers
SavedSettings.apply_all()effect firings: 55 calls / 31 effects -> 19 effects (14 shared app-wide effects run once instead of 3-6x; 5 per-fieldvisibilityeffects kept per-field viaPerFieldEffect).apply_allon 7-treeQtLineRenderer+ThemeManager): median 5.449 ms -> 0.342 ms (15.93x); redundantapply_color_scheme()4 -> 0, redundant treepaint_colours()/QtNameWaveDelegaterebuilds 28 -> 0.QtHistoryWindow.toggle_details,QtHistoryWindow.toggle_collapse,TranscriptPageView.toggle_details,TranscriptPageView.toggle_collapse).What changed
Effect+ no-opQtLineRenderer.follow/QtToadApp.restyle(setting_declarations.py,setting_effects.py,preferences.py,qt/lines.py,qt/window.py):Effect.batch_key(field)defaults toself;PerFieldEffect(Effect)overrides it to(self, field.path)forvisibility.SavedSettings._apply_fieldsdeduplicates per batch in bothapply_all()andchanged().QtLineRenderer.follow(scheme, diff)short-circuits when(scheme, diff)is unchanged;QtToadApp.follow_line_renderercallsrenderer.followwithout rebuilding the full QApplication stylesheet;QtToadApp.restyleskipsapply_color_schemewhenschemeis unchanged;ConversationRows.paint_coloursusesQtLineRenderer.apply_sheet.IMPL-12, paper1 Prop 4.2) (client/fragments.py,link_opening.py,qt/history.py,widgets/transcript_history.py):FragmentToggle(ToggleDetails, declared_name=None)withkey: FragmentKeyandtoggled_shown(target, current)(1-line overrides onFragmentDetailsandFragmentCollapse).TogglesFragmentShown(OpensLineLinks)with one@handles(FragmentToggle) def toggle_fragment, inherited by bothQtHistoryWindowandTranscriptPageView.tools/android/build.sh):XDG_CONFIG_HOME(exported by systemd/ACP sessions) to${HOME}/.configper the XDG spec so Android Gradle Plugin resolves~/.config/.android/debug.keystoreinstead of failing on a nonexistent relative.android/debug.keystore.Verification
92 passed(test_saved_settings.py,test_android_perf_ux_arrivals.py,test_shared_frontend_members.py,test_keymap_model.py,test_settings_screen.py,test_name_wave_repaint.py).REL_IMPORTS=0,qt_inherit_ratchet.py0/0/0/0/0,shadow_check.py0,guarded_imports.py0.