News for hackers. Stuff that matters.
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by tambourine_man on Monday January 16, 2023 @06:28PM (#34406992)
If Vim isn’t responsive in a machine with hundreds of MHz something is very wrong with your setup. Vim was fast on machines with dozens of MHz. Either a bad terminal emulator or some plugin making it slow, I’d guess.
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by pmontra on Monday January 16, 2023 @06:36PM (#34407057)
Not vim but vi, it was fast enough for me on machines with less than a dozen MHz, probably high single digit.

However we have many more layers now. I had a 80x24 serial tty exchanging ASCII characters with the computer back then.

Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by gonzo on Monday January 16, 2023 @11:31PM (#34409158)
Yes, but at what baud?
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by pmontra on Tuesday January 17, 2023 @03:35AM (#34410373)
Probably 4 digits. I was young and not a very fast typer yet. Zenith green phosphor terminals with a repeat key. This one or very similar https://commons.wikimedia.org/wiki/File:Zenith_Z-19_Terminal...

According to https://vt100.net/heath/z19-om.pdf it can do 110 to 9600 baud. It was connected to some Z8000 based Onyx server. It was generally good but incredibly slow when more than four or five of us were compiling code for the tests at university class. Pascal, Berkeley p system or something with a similar name.

Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by pclmulqdq on Monday January 16, 2023 @06:34PM (#34407041)
It's probably a plugin. A lot of them are very slow.
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by 3np on Tuesday January 17, 2023 @04:18AM (#34410586)
As far as I understand, neovim has multithreading where vim doesn't here, making heavy and bad plugins have less impact.
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by bee_rider on Monday January 16, 2023 @07:04PM (#34407304)
So there are two problems I guess, user-based and technical.

User problem: since I use Vim for everything, my expectations as far as responsiveness goes are probably not calibrated correctly. It is almost always very good, so the moments of badness are noticeable. The user (me) is unreasonably picky.

Technical: LaTeX syntax highlighting. It is I’m pretty sure, generally known to be a bit of a pain. Lots of nested environments that can go back dozens of lines and change how commands are interpreted. It is happy in a decent (not huge or anything) sized Fortran code, so I think config is mostly OK. Maybe I should look around and see if there’s a nice LaTeX plugin out there.

Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by tambourine_man on Monday January 16, 2023 @07:21PM (#34407465)
I think you found the culprit. Syntax highlighters are notoriously slow.

You have every right to have high expectations for performance with Vim

Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by celrod on Tuesday January 17, 2023 @04:29AM (#34410644)
Perhaps tree sitter can help the syntax highlighting? https://github.com/latex-lsp/tree-sitter-latex
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by lhl on Tuesday January 17, 2023 @12:15PM (#34415278)
Related, but Neovim has experimental treesitter support (w/ Latex) built in these days: https://github.com/nvim-treesitter/nvim-treesitter

Depending on how hard you push it, Neovim can also be noticeably faster than Vim (notably Lua/LuaJIT being much faster than VimScript)

Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by pletnes on Tuesday January 17, 2023 @05:51AM (#34411096)
Some vim plugins are slow. Fortran highlighting used to be super slow for certain use cases 10 years ago. I think there were some bad regexes. Latex documents are often long (cf other code) and the syntax rules are complex.
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by ObscureScience on Monday January 16, 2023 @07:05PM (#34407310)
It's not vim, but the OS/graphical system that you are most likely using underneath. While having Firefox/Chromium open for reference to what you are working on.
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by 3np on Tuesday January 17, 2023 @04:16AM (#34410577)
Specifically worth comparing terminal emulator performance. I noticed that for example (not surprisingly I guess) alacritty has been both the worst and the best depending on the setup.
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K by pengaru on Tuesday January 17, 2023 @02:38AM (#34410052)
There are definitely some pathological situations where vim becomes unresponsive even on a beefy box. Usually there's exceptionally long lines of text involved.

Furthermore there's the whole intentional delay on ESC exit from modes like an aborted search query... that can make it feel unresponsive but it's just a timeout. Try it, hit '/' in vim, then ESC to abort the search, count a full second of unresponsiveness.