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

--- Comment #8 from Igor Perković <igorp.mail...@gmail.com> ---
> Anyways, didn't get what you were saying, did you mean that you used your
own scripts in kate via external tools plugin and it was slow?
Exactly.

I made a little contest:

Running script with example source data:
Linux (Manjaro KDE, Acer i5 16 GB RAM)
* Sublime 3 sec
* Scite 2 sec
* Kate 12 sec

Windows 10 (XPS i7, 16 GB RAM)
* Sublime Case C --> 8.99 s   | Case A --> 5.01 s
* Scite  Case C -->  12.36 s     | Case A --> 24.14 s
* Kate Case C -->  9.69 s     | Case A --> SUCCESS (today)  after some
20-ish seconds I saw the result

Did not change standard output sizes though...

So, guess it is improved after all. :)


*Igor Perković*


On Fri, 25 Mar 2022 at 12:28, Waqar Ahmed <bugzilla_nore...@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=442739
>
> --- Comment #5 from Waqar Ahmed <waqar....@gmail.com> ---
> > I have implemented scripts for sort/unique both in Lua & Python for that
> > sake... and try them on Kate.
> > For reasonable amount of lines it works really decent.
> > Things start to work slower on 1,2,3 millions of lines... It really is
> not
> > game changer for pure coders,
>
> interesting. It should not be getting slow, but it depends on how the
> operation
> is being performed. Right now the built-in `uniq` is probably slow because
> it
> has to do thousands of removals which is a lot more work than just doing
> all
> the work and then replacing the document's text.  Anyways, didn't get what
> you
> were saying, did you mean that you used your own scripts in kate via
> external
> tools plugin and it was slow?
>
> > Also, my original post was about output speed of Python script
> execution...
> > I really do not know why this part slows down, thus my example in
> > attachment...
>
> Okay, I can suggest a few things. If you can try them, maybe we can narrow
> down
> on what is slowing things down.
> 1. I assume you have run the same command outside kate? If so, how long
> does it
> take to finish.
> 2. Once you run the script and kate freezes, does it every resume? If it
> does
> resume, can you check the "Output" tab of the build plugin view and see if
> it
> has a lot of output. And if you can somehow measure the number of lines in
> the
> output that would be helpful as well.
>
> - 1 is so that we know the command itself is fast
> - 2 might slow things down if you have a ton of output. What happens is
> that
> the ui tries to resize all the lines you see in there, and if you have a
> million lines of output, it will take a while I guess.
>
> --
> You are receiving this mail because:
> You reported the bug.

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

Reply via email to