Open dennisnez opened 4 years ago
The main issue is parsing of the template files which most probably happens somewhere in lgl_db_init()
. For testing purposes, I once combined all template XMLs into a single file which reduced startup time a lot. I never got around to dig deeper, though.
After upgrading from glabels-2 to glabels-3(.4.1) I immediately painfully noticed a muuch longer time to start the app - 14 seconds! 14 seconds of nothing appearing on screen, cpu at 100%, on my 1.6ghz machine.
Getting rid of the main culprits, lgl_db_init() and gl_mini_preview_pixbuf_cache_init() cut that down to 7 seconds and didn't seem to cause any obvious issues (yet). Are these functions needed? And can the loadtime be made faster than 7 seconds here? :p