News for hackers. Stuff that matters.
Re:Lapce by antisthenes on Sunday February 18, 2024 @02:26PM (#39422207)
Okay, just as a counterpoint, I opened 2 10,000 line files and tried to do a diff between them in VSCode. It took more than 20 seconds?

Yes, it breaks workflow and is incredibly slow.

Just like refreshing elements in UI shouldn't take multiple seconds, or a webpage shouldn't take multiple seconds to load on a good connection.

Re:Lapce by stracer on Sunday February 18, 2024 @02:43PM (#39422369)
I tried the same in my Linux terminal emulator, and it took 0.2s, when I added colors, 0.3s. That's 100x faster - maybe diff in VSCode means something different than running diff and printing the output? Did you include the time needed to open the files?
Re:Lapce by antisthenes on Sunday February 18, 2024 @03:02PM (#39422555)
Yes, the files themselves open quite quickly, but I will admit that it's a complicated diff (lots of expected differences), and VSCode is not primarily a diff tool.

But also 10k line file should be nothing for a modern PC.