Skip to content

chore: adding comments to OperationSafener helpers; and other internal improvements to OperationSafener #33520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

davidmurdoch
Copy link
Contributor

@davidmurdoch davidmurdoch commented Jun 6, 2025

Description

Previous PR was merged before I could fix some nit comments. So this is that,

Related: #33486

Open in GitHub Codespaces

Copy link
Contributor

github-actions bot commented Jun 6, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-extension-platform Extension Platform team label Jun 6, 2025
@davidmurdoch davidmurdoch changed the title chore: clarifications and comments chore: adding comments to OperationSafener helpers; and other internal improvements to OperationSafener Jun 6, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [e7b6ef4]
UI Startup Metrics (1218 ± 59 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1218110713875912601333
load105393611915610951158
domContentLoaded104693211865610901148
domInteractive16134151629
firstPaint782108119939710721157
backgroundConnect94356924
firstReactRender20154452027
getState1555792029
initialActions001001
loadScripts80169793856841903
setupStore85213812
WebpackHomeuiStartup21291625262622722782510
load16671267202718517951950
domContentLoaded16611263201818417901940
domInteractive16125981340
firstPaint1686443861193267
backgroundConnect21124162534
firstReactRender14044354110280340
getState145310301323
initialActions318134
loadScripts16581261200718317881929
setupStore4573188921313
FirefoxBrowserifyHomeuiStartup13271170178312913791650
load1162101013809312161342
domContentLoaded1162101013809212161342
domInteractive943517726104160
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2413109182459
firstReactRender23204632328
getState12420631811
initialActions005101
loadScripts114198413579111951312
setupStore11419025634
WebpackHomeuiStartup15301361191212016221771
load13301166165811114081555
domContentLoaded13301166165811114081555
domInteractive80304474183118
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21154972240
firstReactRender40274944346
getState84315919
initialActions002111
loadScripts13121150163711113921536
setupStore10527827810
Benchmark value 16 exceeds gate value 15 for chrome browserify home mean getState
Benchmark value 24 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 45 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2511 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 313 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 13 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 11 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 34 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 41 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 21ms | Sum of p95 exceeds: 318ms
Sum of all benchmark exceeds: 339ms

Bundle size diffs [🚀 Bundle size reduced!]
  • background: -10 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [46cd4b8]
UI Startup Metrics (1197 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1197109413605712401295
load103993511815410771137
domContentLoaded103393111765510701130
domInteractive16125861528
firstPaint68377118641610571111
backgroundConnect84335824
firstReactRender19153332024
getState1453971926
initialActions001001
loadScripts79069993054829889
setupStore74152713
WebpackHomeuiStartup21481710261020822982518
load16651346203116617851914
domContentLoaded16591342202616517771903
domInteractive15125791341
firstPaint1666339567203302
backgroundConnect269287272844
firstReactRender14843363114300351
getState234319571542
initialActions316135
loadScripts16551341202516417741891
setupStore3673227419302
FirefoxBrowserifyHomeuiStartup13141149171210713621554
load1165102914299212141357
domContentLoaded1164102914289212141357
domInteractive91352222598136
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2113119122037
firstReactRender23205742329
getState10418320820
initialActions001001
loadScripts1146101714149011931334
setupStore8416817612
WebpackHomeuiStartup15281310184611215941767
load13261154158910014031520
domContentLoaded13251154158810014031519
domInteractive76361401782115
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22156072336
firstReactRender40305544349
getState95315919
initialActions001011
loadScripts13071139156710113891498
setupStore10517018816
Benchmark value 25 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 36 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2518 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 302 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 41 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 7ms | Sum of p95 exceeds: 308ms
Sum of all benchmark exceeds: 315ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 310 Bytes (0.01%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@davidmurdoch davidmurdoch changed the title chore: adding comments to OperationSafener helpers; and other internal improvements to OperationSafener chore: adding comments to OperationSafener helpers; and other internal improvements to OperationSafener Jun 7, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [be26b07]
UI Startup Metrics (1216 ± 64 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1216109114066412641322
load105894612336311061155
domContentLoaded105193112266410961147
domInteractive16133541628
firstPaint772108123440810961152
backgroundConnect84336823
firstReactRender21154452134
getState1363271925
initialActions001001
loadScripts80969598263857904
setupStore85223914
WebpackHomeuiStartup20561551254623422112473
load16041209195318517371917
domContentLoaded15981205194918417321904
domInteractive15116291338
firstPaint1616546173194315
backgroundConnect2094862232
firstReactRender1234335499111330
getState134312301120
initialActions512582534
loadScripts15951203193918317301894
setupStore5073159618310
FirefoxBrowserifyHomeuiStartup13511198184910513961588
load1194105916928912391332
domContentLoaded1193105916928912391331
domInteractive953524530105148
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2613187252390
firstReactRender23205342427
getState11418124812
initialActions001001
loadScripts1171103115928212201304
setupStore9419520713
WebpackHomeuiStartup15451334201314216311794
load13361155169012314361562
domContentLoaded13351154168912314361561
domInteractive81313303683144
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22165582243
firstReactRender41286844347
getState11524925830
initialActions102111
loadScripts13171139166612314181546
setupStore12524132819
Benchmark value 23 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 51 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2473 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 310 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 10 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 90 exceeds gate value 70 for firefox browserify home p95 backgroundConnect
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 25ms | Sum of p95 exceeds: 289ms
Sum of all benchmark exceeds: 314ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 310 Bytes (0.01%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [ea61b41]
UI Startup Metrics (1216 ± 86 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1216109017578612551327
load105792616238310881146
domContentLoaded105092216158410821141
domInteractive17134661631
firstPaint77590162041210741139
backgroundConnect84285825
firstReactRender20144452033
getState1354481729
initialActions001001
loadScripts805688135881838896
setupStore85173914
WebpackHomeuiStartup20801587254023322552475
load16111248196518517571871
domContentLoaded16041244194718417481861
domInteractive15114771338
firstPaint1666559369188277
backgroundConnect2913434532639
firstReactRender1204436396100330
getState134298291217
initialActions316135
loadScripts16011243193618217461855
setupStore64732011021314
FirefoxBrowserifyHomeuiStartup1375120418779814231557
load1212107714848212701373
domContentLoaded1212107714848212691373
domInteractive943618926109128
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2514133202264
firstReactRender25216552430
getState14539742811
initialActions001001
loadScripts1190106214118012521356
setupStore74597611
WebpackHomeuiStartup15751393205813516701806
load13631198177812814631597
domContentLoaded13621197177812814621597
domInteractive76411201384105
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2615225292345
firstReactRender42355244548
getState105648930
initialActions001011
loadScripts13391172175912214271561
setupStore11520023813
Benchmark value 25 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 65 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2476 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 314 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 14 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 43 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 41ms | Sum of p95 exceeds: 278ms
Sum of all benchmark exceeds: 319ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 310 Bytes (0.01%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-extension-platform Extension Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants