macos-snippets icon indicating copy to clipboard operation
macos-snippets copied to clipboard

typing of snippet title slows ...

Open jeaninem71 opened this issue 4 years ago • 6 comments

After I add several new snippets, maybe 5 or so, typing the title into each new snippets is very slow to respond, it gets slower with each new snippet. I then have to restart the app and it works fine again until I have added several more new snippets and it lags again.

jeaninem71 avatar Mar 29 '21 17:03 jeaninem71

Hi,

Sorry for that! I'll take a look at it this week and publish a fix

marshallino16 avatar Mar 29 '21 20:03 marshallino16

Only the title section is slow? Not the code editor?

marshallino16 avatar Mar 29 '21 22:03 marshallino16

The code editor is slow also. Sorry, I only noticed the title at the time because I was copying and pasting and only typing the title. But, yes, the title and the editor are slow.

Thanks!

Only the title section is slow? Not the code editor?

jeaninem71 avatar Apr 06 '21 01:04 jeaninem71

Below you will see a screen recording of me typing. This is only after adding 3 small snippets, as you can see I pasted the 2nd line and it's much quicker. I type quick so you can see how aggravating this can be. After I quit the app then open it again, it's back to normal, until I type for a few minutes then it starts to lag and slows to a crawl.

https://user-images.githubusercontent.com/12952919/113647941-653dd300-9651-11eb-825f-9e84e65e78ad.mov

jeaninem71 avatar Apr 06 '21 02:04 jeaninem71

I wanted to let you know that I did notice the lagging starts at about 400 characters/80 words/9 lines. By 900 characters/180 words/9 lines it is very slow. I can type 2 lines and it's only on the third word. I can also click on the line above the last line while it is slowly typing it out and it will continue that line wherever my cursor was placed. I hope this gives you a good idea on how much it takes before it's driving me crazy. 😆

Thanks for the continued improvements!

jeaninem71 avatar Apr 06 '21 02:04 jeaninem71

Yes it's very helpful thank you!

It might be because of the saving process (forcing back SwiftUI to reload some components content).

marshallino16 avatar Apr 06 '21 05:04 marshallino16