ramccor / esmska

Automatically exported from code.google.com/p/esmska
0 stars 0 forks source link

Load gateways asynchronously #380

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently loading of the gateways takes a substantial part of program start (it 
may be even around 30%). It could largely improve user experience if the 
gateways were loaded asynchronously in a background thread. That would result 
in program started seemingly "without gateways" and they would be populated 1-3 
seconds after the main window appears.

There are a few issues to notice:
1. there must be a new event indicating the program is fully started
2. until program is fully started, we must not:
a. check for program/gateways updates
b. send usage statistics
c. send any messages?

Original issue reported on code.google.com by kamil.paral on 8 Jun 2011 at 6:25

GoogleCodeExporter commented 9 years ago
I'm not sure if this will help. When the program starts I usually start working 
immediately, selecting a person to send sms. But if the process of message 
writing and selecting of contact isn't problem, then it could work.

Original comment by vladimir...@gmail.com on 8 Jun 2011 at 7:57

GoogleCodeExporter commented 9 years ago
There should be no problem in using the contact list or starting writing the 
message. The only function disabled would be the actual message sending in the 
first several seconds (you can't probably write that fast anyway). Overall it 
should improve the experience.

Original comment by kamil.paral on 8 Jun 2011 at 8:13

GoogleCodeExporter commented 9 years ago
Fixed in 
https://github.com/kparal/esmska/commit/7ea0b3fc23cc17d85a217ab8ef5d5e0c2aefa13c
 .

Please try 0.22beta2 and report your experience.

I have found out that if I load gateways in a background asynchronous thread, 
the program loads 0.5 sec faster. But when I start loading the gateways only 
after the main window shows up, the main window will appear by additional 0.5 
sec faster. I went for the second option.

Thus the main window should appear now faster. The drawback is that it takes 
several additional seconds until the gateways are loaded (i.e. their icons show 
up and you are able to send a message).

Original comment by kamil.paral on 13 Jun 2011 at 8:25