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 are watching all bug changes.