Repository: vscode
Issue: Advanced diff algorithm hangs when dealing with large diff 
Labels: diff-editor

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->

When dealing with large changes in files (.csv and .yaml files with 10^3 +/- line changes in my case), the advanced diff algorithm fails to show the diff with an empty window. The legacy diff algorithm could deal with it with no problem.

The blue progress bar above the `Source control` tab keeps running left to right. Looking at the git output, I see no error but only
```
2024-03-04 09:56:43.998 [info] > git show --textconv HEAD:{name_of_the_file.csv} [62ms]
```

The file itself is <1Mb and I have increased the `Max File Size`. I also set 0 for `Max Computing Time`. I also tried to update git to the newest version available `2.43.2`.

Additionally, comparing two files when doing `Select for compare` and `Compare with selected` also doesn't work similarly.

Issue https://github.com/microsoft/vscode/issues/196255 is somewhat similar but I got an empty diff window.

<details>
  <summary>System info</summary>
  
```
CPUs	12th Gen Intel(R) Core(TM) i7-1270P (16 x 2028)
GPU Status	2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off
Load (avg)	0, 0, 1
Memory (System)	30.95GB (22.56GB free)
Process Argv	--disable-extensions workspace_name.code-workspace --crash-reporter-id 24a84897-3ae5-4551-bd5c-fa957924d4a9
Screen Reader	no
VM	0%
```

</details>

<details>
  <summary>A/B experiment info</summary>
  
```
 
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
pydisww1:30959800
cppperfcontrol:30973184
d34g3935:30971562
edj9j583:30969295
a89i1917:30973842
bg6jg535:30958357
78248357:30976999
ccp2r3:30958157
dsvsc020:30976470
666c4381:30973075
```

</details>