Pictarine / macos-snippets

Snip is a lightweight snippets manager app for macOS
https://snip.picta-hub.io
MIT License
315 stars 18 forks source link

typing of snippet title slows ... #24

Open jeaninem71 opened 3 years ago

jeaninem71 commented 3 years ago

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.

marshallino16 commented 3 years ago

Hi,

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

marshallino16 commented 3 years ago

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

jeaninem71 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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!

marshallino16 commented 3 years ago

Yes it's very helpful thank you!

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