Myriad-Dreamin / tinymist

Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst].
https://myriad-dreamin.github.io/tinymist
Apache License 2.0
862 stars 35 forks source link

Extensions slows down extremely when editing a formula in a touying presentation with cetz #757

Open mohe2015 opened 1 month ago

mohe2015 commented 1 month ago

Describe the bug When editing the formula in the document attached at the end of this issue report, the extension quickly slows down extremely as also seen in the logs by

[2024-10-31T14:05:01Z INFO  sync_lsp] handled  textDocument/completion - (320) in 24.97s

Edit: potentially editing some lorem ipsums above is needed to trigger the bug

Edit: I think you need to type really fast and then after stopping to type it will hang up

I will try to reduce the reproducer further but it would be good to know whether it reproduces for others at all.

Package/Software version:

VSCode version(Help -> About):

Version: 1.94.2
Release: 24284
Commit: ea88724571c2cd4044155127c5ba85681e5cdcfe
Date: 2024-10-10T18:23:57.145Z
Electron: 30.5.1
ElectronBuildId: undefined
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Linux x64 6.11.5

tinymist extension version: v0.12.0. Get it by tinymist --version in terminal.

tinymist 
Build Timestamp:     1980-01-01T00:00:00.000000000Z
Build Git Describe:  VERGEN_IDEMPOTENT_OUTPUT
Commit SHA:          VERGEN_IDEMPOTENT_OUTPUT
Commit Date:         None
Commit Branch:       None
Cargo Target Triple: x86_64-unknown-linux-gnu
Typst Version:       0.12.0
Typst Source:        git+https://github.com/Myriad-Dreamin/typst.git?tag=tinymist-v0.12.0#58426a90a7ef721738a01be09793d33e55eb75a9

Logs:

tinymist server log(Output Panel -> tinymist): Attached as it is too large https://gist.github.com/mohe2015/a1af4e8f037c2ae94e5a5184fe0987cd

tinymist client log(Help -> Toggle Developer Tools -> Console):

workbench.desktop.main.js:35  INFO Started local extension host with pid 16849.
3workbench.desktop.main.js:617 [Extension Host] determineVscodeTheme 2
workbench.desktop.main.js:617 [Extension Host] deserializeWebviewPanel Object
workbench.desktop.main.js:617 [Extension Host] Preview Command /home/moritz/Documents/dare2024/slow-ide.typ
workbench.desktop.main.js:617 [Extension Host] Launched preview, data plane port:38161, static server port:38161
workbench.desktop.main.js:3358 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ workbench.desktop.main.js:3358
2workbench.desktop.main.js:617 [Extension Host] determineVscodeTheme 2
VM7:12 state eyJtb2RlIjoiZG9jIiwiYXNQcmltYXJ5IjpmYWxzZSwidXJpIjoiZmlsZTovLy9ob21lL21vcml0ei9Eb2N1bWVudHMvZGFyZTIwMjQvc2xvdy1pZGUudHlwIn0=
VM7:16 vscode_state Object
VM8:8989 using deprecated parameters for the initialization function; pass a single object instead
__wbg_init @ VM8:8989
VM8:6005 plugin initialized, build info: Object
VM8:5891 WebSocket connection opened WebSocket
VM8:5926 batch 2 messages
VM8:5947 recv partial-rendering 22
VM8:5984 Experimental feature: partial rendering enabled
VM8:5947 recv invert-colors 19
VM8:5990 Experimental feature: invert colors strategy taken: never
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 38124
VM8:1388 render_in_window with partial rendering enabled window 1.4052123129804173 0 40.7511570764321 958.3547974526446 758.8146490094254 , patch scale 44169
VM8:369 parse 19.30 ms, rerender 54.80 ms, total 74.10 ms
2workbench.desktop.main.js:617 [Extension Host] determineVscodeTheme 2
VM8:5926 batch 2 messages
2VM8:5947 recv diff-v1 340
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 776.0479041916168 , patch scale 17122
VM8:1667 cancel canvas rendering
VM8:369 parse 0.50 ms, rerender 13.20 ms, total 13.70 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.7999999998137355
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cwOni/5iWyHcI0fFMLdleBw
VM8:1864 updateCanvas one miss undefined cLqsaNl1Y+24hpUICl+EGig
VM8:1864 updateCanvas one miss undefined cMZEeUsJakRwo8Qefi/rb4k
VM8:1864 updateCanvas one miss undefined cABrvcZS2MgYfokzQT0sqfQ
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 340
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 776.0479041916168 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.10 ms, rerender 2.60 ms, total 2.70 ms
VM8:1872 updateCanvas done 501.79999999981374
VM8:1832 updateCanvas start
6workbench.desktop.main.js:617 [Extension Host] determineVscodeTheme 2
VM8:1872 updateCanvas done 404.19999999925494
workbench.desktop.main.js:35  INFO [perf] Render performance baseline is 20ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 340
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 776.0479041916168 , patch scale 1442
VM8:369 parse 0.30 ms, rerender 2.00 ms, total 2.30 ms
VM8:1832 updateCanvas start
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 340
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 776.0479041916168 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.20 ms, rerender 1.30 ms, total 1.50 ms
VM8:1847 updateCanvas cancelled 187.6000000005588
VM8:1832 updateCanvas start
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 340
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 776.0479041916168 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.60 ms, rerender 5.70 ms, total 6.30 ms
VM8:1847 updateCanvas cancelled 188.8999999994412
VM8:1832 updateCanvas start
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 340
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 776.0479041916168 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.50 ms, rerender 1.60 ms, total 2.10 ms
VM8:1847 updateCanvas cancelled 100.8999999994412
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 255.69999999925494
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 88756
VM8:369 parse 0.00 ms, rerender 28.10 ms, total 28.10 ms
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cQm12DLa/7DEFNj1cfrxnsQ
VM8:1864 updateCanvas one miss undefined clLMJSZU8e18ljqpgGkTNkY
VM8:1864 updateCanvas one miss undefined cjeMoK/okBGgSXIix+cam3w
VM8:1872 updateCanvas done 462.1000000005588
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 1442
VM8:369 parse 0.00 ms, rerender 3.10 ms, total 3.10 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 403.20000000018626
VM8:5926 batch 1 messages
VM8:5947 recv jump 23
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1972
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 8965
VM8:369 parse 0.20 ms, rerender 4.50 ms, total 4.70 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 404.29999999981374
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1948
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 8843
VM8:369 parse 0.10 ms, rerender 5.40 ms, total 5.50 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1756
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 7867
VM8:1667 cancel canvas rendering
VM8:369 parse 0.50 ms, rerender 10.20 ms, total 10.70 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.5
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1588
VM8:1832 updateCanvas start
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 7015
VM8:1667 cancel canvas rendering
VM8:369 parse 0.30 ms, rerender 6.20 ms, total 6.50 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1556
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 6676
VM8:1667 cancel canvas rendering
VM8:587 reuse directly <g transform=​"translate(130.924,48.000)​" data-tid=​"pzF5AG9ZzvfYZ4d5GJ6NXfc">​</g>​
VM8:587 reuse directly <g transform=​"translate(145.564,48.000)​" data-tid=​"pqVuMOsyFhxsgsmMYNpSLxE">​</g>​
VM8:587 reuse directly <g transform=​"translate(153.344,48.000)​" data-tid=​"pzF5AG9ZzvfYZ4d5GJ6NXfc">​</g>​
VM8:587 reuse directly <g transform=​"translate(167.984,48.000)​" data-tid=​"pqVuMOsyFhxsgsmMYNpSLxE">​</g>​
VM8:587 reuse directly <g transform=​"translate(175.764,48.000)​" data-tid=​"pLgR1yp7fHs8nO2mEfi5vds">​</g>​
VM8:369 parse 0.90 ms, rerender 9.20 ms, total 10.10 ms
VM8:1847 updateCanvas cancelled 123.5
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.09999999962747097
VM8:1832 updateCanvas start
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1468
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 6554
VM8:1667 cancel canvas rendering
VM8:369 parse 0.50 ms, rerender 3.30 ms, total 3.80 ms
VM8:1847 updateCanvas cancelled 96.79999999981374
VM8:1832 updateCanvas start
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1508
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 6432
VM8:1667 cancel canvas rendering
VM8:369 parse 0.20 ms, rerender 3.70 ms, total 3.90 ms
VM8:1847 updateCanvas cancelled 201.40000000037253
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 403.20000000018626
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1484
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 6310
VM8:369 parse 0.10 ms, rerender 4.10 ms, total 4.20 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1436
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 776.0479041916168 , patch scale 6066
VM8:1667 cancel canvas rendering
VM8:369 parse 0.20 ms, rerender 4.80 ms, total 5.00 ms
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 774.6107784431138 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.10 ms, rerender 7.10 ms, total 7.20 ms
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 754.4910179640718 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.00 ms, rerender 6.90 ms, total 6.90 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.09999999962747097
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 727.185628742515 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.00 ms, rerender 2.50 ms, total 2.50 ms
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 709.9401197604791 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.00 ms, rerender 7.30 ms, total 7.30 ms
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 0.00 ms, rerender 7.10 ms, total 7.10 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.2999999998137355
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.09999999962747097
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 402.6000000005588
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1460
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 6188
VM8:587 reuse directly <g transform=​"translate(153.704,46.580)​" data-tid=​"pzF5AG9ZzvfYZ4d5GJ6NXfc">​</g>​
VM8:369 parse 0.20 ms, rerender 5.20 ms, total 5.40 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1492
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 6432
VM8:1667 cancel canvas rendering
VM8:587 reuse directly <g transform=​"translate(160.564,48.000)​" data-tid=​"pqVuMOsyFhxsgsmMYNpSLxE">​</g>​
VM8:587 reuse directly <g transform=​"translate(168.344,48.000)​" data-tid=​"pm8lfsk6zbLAK9JfAAlN6aY">​</g>​
VM8:369 parse 0.50 ms, rerender 11.40 ms, total 11.90 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.20000000018626451
VM8:1832 updateCanvas start
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 2172
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 7347
VM8:1667 cancel canvas rendering
VM8:369 parse 0.20 ms, rerender 6.20 ms, total 6.40 ms
VM8:1847 updateCanvas cancelled 186.70000000018626
VM8:1832 updateCanvas start
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 388
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 6432
VM8:1667 cancel canvas rendering
VM8:369 parse 0.10 ms, rerender 5.20 ms, total 5.30 ms
VM8:1847 updateCanvas cancelled 324.20000000018626
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1516
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 6554
VM8:1667 cancel canvas rendering
VM8:587 reuse directly <g transform=​"translate(161.024,48.000)​" data-tid=​"pzF5AG9ZzvfYZ4d5GJ6NXfc">​</g>​
VM8:369 parse 0.10 ms, rerender 6.00 ms, total 6.10 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1636
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 8551
VM8:1667 cancel canvas rendering
VM8:369 parse 0.20 ms, rerender 6.90 ms, total 7.10 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1660
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 7395
VM8:1667 cancel canvas rendering
VM8:369 parse 0.10 ms, rerender 10.30 ms, total 10.40 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.19999999925494194
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 2876
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 8932
VM8:1667 cancel canvas rendering
VM8:369 parse 0.70 ms, rerender 9.40 ms, total 10.10 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.10000000055879354
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 404.5
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 452
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 7732
VM8:587 reuse directly <g transform=​"translate(37.060,14.960)​" data-tid=​"pqVuMOsyFhxsgsmMYNpSLxE">​</g>​
VM8:369 parse 0.30 ms, rerender 5.80 ms, total 6.10 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 403
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1636
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 7514
VM8:369 parse 0.10 ms, rerender 2.50 ms, total 2.60 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 402.3999999994412
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1780
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 8004
VM8:587 reuse directly <g transform=​"translate(69.093,14.960)​" data-tid=​"pLgR1yp7fHs8nO2mEfi5vds">​</g>​
VM8:587 reuse directly <g transform=​"translate(94.153,14.960)​" data-tid=​"pXlIgPY2pblkcBLgQj5ArtE">​</g>​
VM8:587 reuse directly <g transform=​"translate(103.047,14.960)​" data-tid=​"pLgR1yp7fHs8nO2mEfi5vds">​</g>​
VM8:369 parse 0.10 ms, rerender 3.00 ms, total 3.10 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 403.59999999962747
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 2532
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 9424
VM8:369 parse 0.10 ms, rerender 3.50 ms, total 3.60 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 340
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 1442
VM8:1667 cancel canvas rendering
VM8:369 parse 1.20 ms, rerender 4.20 ms, total 5.40 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.10000000055879354
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 402.29999999981374
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1956
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 7989
VM8:369 parse 0.30 ms, rerender 4.30 ms, total 4.60 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 404
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1876
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 8732
VM8:587 reuse directly <g transform=​"translate(174.360,14.960)​" data-tid=​"pzF5AG9ZzvfYZ4d5GJ6NXfc">​</g>​
VM8:587 reuse directly <g transform=​"translate(189.000,14.960)​" data-tid=​"pqVuMOsyFhxsgsmMYNpSLxE">​</g>​
VM8:587 reuse directly <g transform=​"translate(196.780,14.960)​" data-tid=​"pm8lfsk6zbLAK9JfAAlN6aY">​</g>​
VM8:369 parse 0.30 ms, rerender 5.10 ms, total 5.40 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 403.29999999981374
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 2132
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 9453
VM8:587 reuse directly <g transform=​"translate(196.780,14.960)​" data-tid=​"pzF5AG9ZzvfYZ4d5GJ6NXfc">​</g>​
VM8:587 reuse directly <g transform=​"translate(211.420,14.960)​" data-tid=​"pXlIgPY2pblkcBLgQj5ArtE">​</g>​
VM8:587 reuse directly <g transform=​"translate(220.313,14.960)​" data-tid=​"pLgR1yp7fHs8nO2mEfi5vds">​</g>​
VM8:587 reuse directly <g transform=​"translate(235.573,19.900)​" data-tid=​"puFvTSiV8xpw86IE65l6HxI">​</g>​
VM8:587 reuse directly <g transform=​"translate(251.501,14.960)​" data-tid=​"pXlIgPY2pblkcBLgQj5ArtE">​</g>​
VM8:587 reuse directly <g transform=​"translate(260.394,14.960)​" data-tid=​"pLgR1yp7fHs8nO2mEfi5vds">​</g>​
VM8:587 reuse directly <g transform=​"translate(275.654,19.900)​" data-tid=​"pEvepb2KrkyYlqJQijKhobk">​</g>​
VM8:587 reuse directly <g transform=​"translate(284.334,15.854)​" data-tid=​"pumb5JjiB3004PmTUZ/​0Rk4">​</g>​
VM8:369 parse 0.10 ms, rerender 4.80 ms, total 4.90 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 403.80000000074506
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 2084
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 8970
VM8:369 parse 0.10 ms, rerender 3.20 ms, total 3.30 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1716
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 7853
VM8:1667 cancel canvas rendering
VM8:587 reuse directly <g transform=​"translate(37.060,14.960)​" data-tid=​"pqVuMOsyFhxsgsmMYNpSLxE">​</g>​
VM8:369 parse 0.60 ms, rerender 5.20 ms, total 5.80 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.09999999962747097
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 404.09999999962747
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1660
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 7635
VM8:369 parse 0.10 ms, rerender 3.30 ms, total 3.40 ms
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1820
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 8125
VM8:1667 cancel canvas rendering
VM8:587 reuse directly <g transform=​"translate(69.093,14.960)​" data-tid=​"pLgR1yp7fHs8nO2mEfi5vds">​</g>​
VM8:587 reuse directly <g transform=​"translate(94.153,14.960)​" data-tid=​"pXlIgPY2pblkcBLgQj5ArtE">​</g>​
VM8:587 reuse directly <g transform=​"translate(103.047,14.960)​" data-tid=​"pLgR1yp7fHs8nO2mEfi5vds">​</g>​
VM8:369 parse 0.20 ms, rerender 3.60 ms, total 3.80 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.19999999925494194
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 402.79999999981374
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 1820
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 8761
VM8:369 parse 1.10 ms, rerender 7.30 ms, total 8.40 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 403
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 2044
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3137.245508982036 980.1197604790419 701.3173652694611 , patch scale 11006
VM8:587 reuse directly <g transform=​"translate(37.060,14.960)​" data-tid=​"pqVuMOsyFhxsgsmMYNpSLxE">​</g>​
VM8:587 reuse directly <g transform=​"translate(174.360,14.960)​" data-tid=​"pzF5AG9ZzvfYZ4d5GJ6NXfc">​</g>​
VM8:587 reuse directly <g transform=​"translate(189.000,14.960)​" data-tid=​"pqVuMOsyFhxsgsmMYNpSLxE">​</g>​
VM8:587 reuse directly <g transform=​"translate(196.780,14.960)​" data-tid=​"pzF5AG9ZzvfYZ4d5GJ6NXfc">​</g>​
VM8:587 reuse directly <g transform=​"translate(211.420,14.960)​" data-tid=​"pXlIgPY2pblkcBLgQj5ArtE">​</g>​
VM8:587 reuse directly <g transform=​"translate(220.313,14.960)​" data-tid=​"pLgR1yp7fHs8nO2mEfi5vds">​</g>​
VM8:369 parse 0.10 ms, rerender 6.10 ms, total 6.20 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 402.29999999981374
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 701.3173652694611 , patch scale 17725
VM8:369 parse 0.00 ms, rerender 50.40 ms, total 50.40 ms
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3211.9760479041915 980.1197604790419 701.3173652694611 , patch scale 98352
VM8:1667 cancel canvas rendering
VM8:369 parse 0.00 ms, rerender 26.50 ms, total 26.50 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.20000000018626451
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 701.3173652694611 , patch scale 17725
VM8:1667 cancel canvas rendering
VM8:369 parse 0.00 ms, rerender 25.10 ms, total 25.10 ms
VM8:1832 updateCanvas start
VM8:1847 updateCanvas cancelled 0.40000000037252903
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cLqsaNl1Y+24hpUICl+EGig
VM8:1864 updateCanvas one miss undefined cMZEeUsJakRwo8Qefi/rb4k
VM8:1864 updateCanvas one miss undefined cZRtUFNFMqZwTjpnQPLK8Vs
VM8:1872 updateCanvas done 489.29999999981374
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3211.9760479041915 980.1197604790419 701.3173652694611 , patch scale 98352
VM8:369 parse 0.00 ms, rerender 34.20 ms, total 34.20 ms
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cQm12DLa/7DEFNj1cfrxnsQ
VM8:1864 updateCanvas one miss undefined clLMJSZU8e18ljqpgGkTNkY
VM8:1864 updateCanvas one miss undefined cjeMoK/okBGgSXIix+cam3w
VM8:1872 updateCanvas done 449.90000000037253
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 701.3173652694611 , patch scale 17725
VM8:369 parse 0.00 ms, rerender 21.10 ms, total 21.10 ms
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cLqsaNl1Y+24hpUICl+EGig
VM8:1864 updateCanvas one miss undefined cMZEeUsJakRwo8Qefi/rb4k
VM8:1864 updateCanvas one miss undefined cZRtUFNFMqZwTjpnQPLK8Vs
VM8:1872 updateCanvas done 380
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3211.9760479041915 980.1197604790419 701.3173652694611 , patch scale 98352
VM8:369 parse 0.00 ms, rerender 34.00 ms, total 34.00 ms
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cQm12DLa/7DEFNj1cfrxnsQ
VM8:1864 updateCanvas one miss undefined clLMJSZU8e18ljqpgGkTNkY
VM8:1864 updateCanvas one miss undefined cjeMoK/okBGgSXIix+cam3w
VM8:1872 updateCanvas done 323.40000000037253
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 701.3173652694611 , patch scale 17725
VM8:369 parse 0.00 ms, rerender 23.10 ms, total 23.10 ms
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cLqsaNl1Y+24hpUICl+EGig
VM8:1864 updateCanvas one miss undefined cMZEeUsJakRwo8Qefi/rb4k
VM8:1864 updateCanvas one miss undefined cZRtUFNFMqZwTjpnQPLK8Vs
VM8:1872 updateCanvas done 558.2000000001863
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3211.9760479041915 980.1197604790419 701.3173652694611 , patch scale 98352
VM8:369 parse 0.00 ms, rerender 25.20 ms, total 25.20 ms
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cQm12DLa/7DEFNj1cfrxnsQ
VM8:1864 updateCanvas one miss undefined clLMJSZU8e18ljqpgGkTNkY
VM8:1864 updateCanvas one miss undefined cjeMoK/okBGgSXIix+cam3w
VM8:1872 updateCanvas done 451.79999999981374
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 41.67664670658683 980.1197604790419 701.3173652694611 , patch scale 17725
VM8:369 parse 0.00 ms, rerender 57.70 ms, total 57.70 ms
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cLqsaNl1Y+24hpUICl+EGig
VM8:1864 updateCanvas one miss undefined cMZEeUsJakRwo8Qefi/rb4k
VM8:1864 updateCanvas one miss undefined cZRtUFNFMqZwTjpnQPLK8Vs
VM8:1872 updateCanvas done 561.4000000003725
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3211.9760479041915 980.1197604790419 701.3173652694611 , patch scale 98352
VM8:369 parse 0.00 ms, rerender 36.30 ms, total 36.30 ms
VM8:1832 updateCanvas start
VM8:1864 updateCanvas one miss undefined cQm12DLa/7DEFNj1cfrxnsQ
VM8:1864 updateCanvas one miss undefined clLMJSZU8e18ljqpgGkTNkY
VM8:1864 updateCanvas one miss undefined cjeMoK/okBGgSXIix+cam3w
VM8:1872 updateCanvas done 464.09999999962747
VM8:5926 batch 1 messages
VM8:5947 recv diff-v1 404
VM8:1388 render_in_window with partial rendering enabled window 1.437125748502994 0 3211.9760479041915 980.1197604790419 701.3173652694611 , patch scale 1442
VM8:369 parse 0.00 ms, rerender 4.40 ms, total 4.40 ms
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 408
3workbench.desktop.main.js:617 [Extension Host] skip extension-output file extension-output-myriad-dreamin.tinymist-#1-Tinymist Typst Language Server
VM8:1388 render_in_window with partial rendering enabled window 2.1818181818181817 0 4876.363636363636 990.5454545454545 1064.7272727272727 , patch scale 1328
VM8:369 parse 0.00 ms, rerender 20.80 ms, total 20.80 ms
VM8:1832 updateCanvas start
VM8:1388 render_in_window with partial rendering enabled window 2.1818181818181817 0 2917.090909090909 990.5454545454545 1064.7272727272727 , patch scale 120439
VM8:1667 cancel canvas rendering
VM8:369 parse 0.00 ms, rerender 52.20 ms, total 52.20 ms
VM8:1847 updateCanvas cancelled 673.1000000005588
VM8:1832 updateCanvas start
VM8:1872 updateCanvas done 398.70000000018626
workbench.desktop.main.js:617 [Extension Host] skip extension-output file extension-output-myriad-dreamin.tinymist-#1-Tinymist Typst Language Server

Additional context Add any other context about the problem here.

#import "@preview/cetz:0.3.0"
#import "@preview/touying:0.5.2": *
#import "@preview/not-tudabeamer-2023:0.1.0": *
#let cetz-canvas = touying-reducer.with(reduce: cetz.canvas, cover: cetz.draw.hide.with(bounds: true))

#show: not-tudabeamer-2023-theme.with(
  config-info(
    title: lorem(5),
    short-title: lorem(5),
    subtitle: lorem(5),
    author: lorem(5),
    short-author: lorem(5),
    date: datetime.today(),
    department: lorem(5),
    institute: lorem(5),
    logo: lorem(5)
  )
)

#title-slide()

#slide(title: lorem(5), repeat: 2, self => [
  #let (uncover, only) = utils.methods(self)

  #cetz-canvas({
    import cetz.draw: *

    scale(y: -1)

    self = utils.merge-dicts(
      self,
      config-methods(cover: utils.method-wrapper(hide.with(bounds: true))),
    )
    let (uncover,only) = utils.methods(self)

    content((0,0), lorem(5), name: "alice")

    uncover("2", {
      group({
        line("alice.south-east", (rel: (1, 1), to: "alice.south-east"), name: "left-line")
        content("left-line.end", lorem(5), anchor: "north-west", name: "happily")
        line("happily.north-east", (rel: (1, -1), to: "happily.north-east"))
      }, name: "happily")
    })

    content("happily.north-east", lorem(5), anchor: "south-west")
  })
])

== #lorem(5)

#slide(repeat: 3, self => [
  #let (uncover, only) = utils.methods(self)

  #grid(
    columns: (1fr, 1fr),
    rows: (1fr),
    gutter: 1in,
    [
      #cetz-canvas({
        import cetz.draw: *

        scale(y: -1)

        self = utils.merge-dicts(
          self,
          config-methods(cover: utils.method-wrapper(hide.with(bounds: true))),
        )
        let (uncover,only) = utils.methods(self)

        let operation(position, body, anchor, direction) = {
          circle(position, radius: 3pt, fill: black)
          line(position, cetz.vector.add(position, (0.5*direction, 0)))
          content(cetz.vector.add(position, (0.5*direction, 0)), box(body, inset: 0.1in, stroke: 1pt), anchor: anchor)
        }
        let xDistance = 3

        content((1.2,-2), lorem(5))

        content((0,0), box(lorem(1), inset: 0.1in, stroke: 1pt), anchor: "south")

        line((0, 0), (0, 10))

        content((xDistance,0), box(lorem(1), inset: 0.1in, stroke: 1pt), anchor: "south")

        line((xDistance, 0), (xDistance, 10))

        operation((0,1), lorem(2), "east", -1)

        operation((0,3), lorem(2), "east", -1)

        operation((xDistance,1), lorem(2), "west", 1)

        line((0,1), (xDistance,3), mark: (end: ">", scale: 2))

        line((0,3), (xDistance,5), mark: (end: ">", scale: 2))

        line((xDistance,1), (0,5), mark: (end: ">", scale: 2))

        uncover("2-", {
          operation((xDistance,3), lorem(2), "west", 1)
        })

        uncover("3-", {
          operation((xDistance,5), lorem(2), "west", 1)
          operation((xDistance, 6.5), lorem(1), "west", 1)
        })
      })
    ],
    [
      = #lorem(5)

      #only("2-", [
        + #lorem(5)
        + #lorem(5)
        + #lorem(5)
        + #lorem(5)
      ])
      #only("3-", [
        + #lorem(5)
        + #lorem(5)
        + #lorem(5)
      ])
    ]
  )
])

== #lorem(5)

$
  T(T(O, O_a), O_b') = T(T(O, O_b), O_a') \
  T(T(O, O_a, O_b')) = T(T, O_b), O_a' \
  T(T(O, O_a, O_b')) = T(T, O_b)
$
mohe2015 commented 3 weeks ago

To clarify: the preview slows down extremely, the editor itself still works fine