https://bugs.kde.org/show_bug.cgi?id=465841

--- Comment #13 from Oded Arbel <o...@geek.co.il> ---
(In reply to Waqar Ahmed from comment #11)
> Do you have a default indenter set maybe? Check Configure Kate -> Editing ->
> Indentation
> 
> What are your indenter settings? On a quick try I can't reproduce the
> slowness with Indent On Paste + Cstyle indenter.

My  default indenter was XML (I'm not sure if it was the default or if I
changed it, and I don't really understand the differences between most of the
options). With a default C style indenter the paste freeze is much shorter -
something like 4 seconds instead of more than 10 seconds - but still noticeably
large for a ~200 lines block, even if lines are very long. It also adds less of
the unexpected indentation - but still does.

When I compare this to grabbing an equivalently large (in character count)
block with much more reasonably sized lines - which is 6000 lines long -
pasting (with indentation on paste enabled) takes a much longer time, with the
C style indenter - about 20 seconds (and also there are no unexpected
indentation).

My conclusion is that the "indent on paste" is just slow - very likely because
it is very expensive ¯\_(ツ)_/¯ 

I also compared pasting into my main IDE - Eclipse - which does a lot of
formatting on paste (not just indentation) and it handles all the cumbersome
paste tasks relatively quickly: I couldn't get it to delay more than 2 seconds,
regardless of content size and shape. So maybe it isn't inevitable that
formatting during paste is slow, but I'm done barking up that tree ;-)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to