question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow new lines, code generation, and pasting

See original GitHub issue

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ

Operating System

MacOS

TeXiFy IDEA version

0.7.16

What I did (steps to reproduce)

In any LaTeX file, pressing ENTER to create a newline is incredibly slow (~500ms). Same with if I type \begin, wait for the suggestions, and press enter. It takes ~500ms to create the block:

\begin{}
\end{}

Same after entering the environment name and pressing ENTER. Slower depending on the size automated entered.

Pasting is also slow. Slower the larger the paste.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
PHPiratescommented, Apr 10, 2022

@schwepmo Thanks for the snapshot, the issue seems to be that we’re retrieving information from the index every time, but because you have installed TeX Live the index is huge. We do this because information might have changed, which is true for the files inside your project but not so much for TeX Live, so we could just cache that in memory. Can you try if the following build fixes the performance issue? It should only be slow once. TeXiFy-IDEA-0.7.16-2318.zip

1reaction
oliveryasunacommented, Apr 11, 2022

Same here, the build fixed the lag.

Note: I am using MacTeX. Now that I think about it, I did not have this issue when I used BasicTeX.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slow loading and copy/paste of big content #2912 - GitHub
The issue is slow loading and copy/paste of big content. It actually freeze the browser and take 10s to even 1min if the...
Read more >
Why is pasting a long one-liner very slow in Vim's insert mode?
I tried :set paste and :set nowrap and still as slow. Pasting the line straight into a terminal is equally slow.
Read more >
109587 - Pasting lots of text to a textarea is slow - chromium
Issue 163131: Clearing a textarea which contains a large amount of text is extremely slow. Restricting this bug to "Pasting is slow".
Read more >
Fast version of paste - Unix & Linux Stack Exchange
paste is an order of magnitude slower than cat; paste 's throughput is extremely consistent (~300MB/s) across a wide range of line widths, ......
Read more >
Solved: Pasting from Excel to Text Input extremely slow (c...
that's an interesting issue you figured out. It's quicker on my pc but it still takes "forever" (a couple minutes with 50k lines)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found