You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Hover on each property to see its docs!consteditor=monaco.editor.createDiffEditor(document.getElementById("container"),{language: 'javascript',defaultEndOfLine: '\n',maxComputationTime: 1000000,maxFileSize: 10000000});letd0;functionstart(){d0=Date.now();return'';}functionstop(){constelapsed_ms=Date.now()-d0;returnelapsed_ms+'ms'}asyncfunctionsetModel(){console.info('Fetching text...',start());constresponse=awaitfetch('https://raw.githubusercontent.com/dscape/spell/refs/heads/master/test/resources/big.txt');letvalue=awaitresponse.text();value=value.substring(0,1000000);console.info('Fetching text...DONE',stop());console.info('Initializing...')constoriginal=monaco.editor.createModel(value,'text');constmodified=monaco.editor.createModel(value.replace(/i/g,'I'),'text');console.info('Initializing...DONE',stop());console.info('Requesting diff...')editor.setModel({original, modified});editor.onDidUpdateDiff(()=>{console.info('Requesting diff...DONE',stop())});}setModel();
Reproduction Steps
No response
Actual (Problematic) Behavior
Good morning, I've noticed a significant decrease of the diff algorithm performance.
Using exactly the same input v0.52.2 (7.2s) is more than twice slower than v0.37.1 (2.6s)
Moreover depending the size of the input the duration is not linear.
Using 5M characters instead of 1M (ajusting the 2 parameter of the substring value) v0.37.1 gives a diff within 122s and the v0.52.2 260s
Expected Behavior
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
Reproduction Steps
No response
Actual (Problematic) Behavior
Good morning, I've noticed a significant decrease of the diff algorithm performance.
Using exactly the same input v0.52.2 (7.2s) is more than twice slower than v0.37.1 (2.6s)
Moreover depending the size of the input the duration is not linear.
Using 5M characters instead of 1M (ajusting the 2 parameter of the substring value) v0.37.1 gives a diff within 122s and the v0.52.2 260s
Expected Behavior
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: