GPaste icon indicating copy to clipboard operation
GPaste copied to clipboard

[enhancement] reduce startup time

Open mattia-b89 opened this issue 5 years ago • 4 comments

Startup of the service requires much time: more than 3 secs, far more than any other service, like tracker or pulseaudio:

[mattia@arch-xps ~]$ systemd-analyze blame --user
          3.051s org.gnome.GPaste.service
           282ms tracker-store.service
           273ms pulseaudio.service
[...]

I think is an issue worth to be examined

mattia-b89 avatar Mar 17 '19 17:03 mattia-b89

Startup time depends on the size of your history. How many items are there in your history?

Keruspe avatar Mar 17 '19 18:03 Keruspe

Default settings, 1000 elements in history

mattia-b89 avatar Mar 18 '19 17:03 mattia-b89

Can you run du -h ~/.local/share/gpaste/history.xml ?

Here it weighs 244k and loads in ~300ms

Keruspe avatar Mar 22 '19 10:03 Keruspe

[mattia@arch-xps ~]$ du -h ~/.local/share/gpaste/history.xml
472K	/home/mattia/.local/share/gpaste/history.xml

mattia-b89 avatar Mar 22 '19 21:03 mattia-b89