icsharpcode / AvalonEdit

The WPF-based text editor component used in SharpDevelop
http://avalonedit.net/
MIT License
1.85k stars 469 forks source link

duration of TextChange in a rectangular selection #409

Open alex8900vbs opened 1 year ago

alex8900vbs commented 1 year ago

hello, can anyone tell me how I can speed up multi-line editing? if I make a rectangular selection with 100 rows and only 1 column and I press for example space it takes 2 to 3 seconds before the text changes, is there any way to speed it up?

jimfoye commented 1 year ago

Is this related? https://github.com/icsharpcode/AvalonEdit/issues/58

alex8900vbs commented 1 year ago

Is this related? #58

yes but the solution not work or not implemented

zaksmolen commented 1 year ago

Yes this is the same issue. My solution works fine, I've had this in a local branch for years. I didn't have time to delve into the issues with the pull request when I made it, and then it worked so I never bothered following up there... Happy to look at an official solution that can be merged in so that I don't have to maintain my own local code anymore.

On Mon, Aug 14, 2023 at 10:20 AM alex8900vbs @.***> wrote:

Is this related? #58 https://github.com/icsharpcode/AvalonEdit/issues/58

yes but the solution not work or not implemented

— Reply to this email directly, view it on GitHub https://github.com/icsharpcode/AvalonEdit/issues/409#issuecomment-1677411681, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC7P4IGJG5FZTMKCTPTHEOTXVIX2FANCNFSM6AAAAAA3PUBMT4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

alex8900vbs commented 1 year ago

Yes this is the same issue. My solution works fine, I've had this in a local branch for years. I didn't have time to delve into the issues with the pull request when I made it, and then it worked so I never bothered following up there... Happy to look at an official solution that can be merged in so that I don't have to maintain my own local code anymore.

how did you fix it if i can? I can not understand

EDIT: I've seen your solution, but I've also seen that it's not included in the project yet

alex8900vbs commented 1 year ago

I solved it without modifying avalonedit , I'll leave it here if it should be useful to anyone

https://pastebin.com/raw/upbg5JyG