To add on to Moxieâs comment, if anybody here has a development environment setup and is experiencing this significant lag, weâd benefit from a method trace of a send happening to see exactly whatâs being called and how long it takes.
See https://developer.android.com/tools/debugging/debugging-tracing.html <https://developer.android.com/tools/debugging/debugging-tracing.html>, and the new Android Studio 1.2 release candidate makes it even easier with their new CPU profiling tab.
Itâd be a great help to us to see exactly what methods are called and how long theyâre taking on your devices.
Post by John Doe1. For what its worth, the delay is definitely not because of encryption.
Because since recent whatsapp updates, even whatsapp uses OWS encryption, which is same libraries used in TextSecure encryption.
2. About profile pictures, since it should be visible to and updated in every instance of whatsapp, irrespective of whether the contact is online or not, requires photos to be stored into a server side backend, as obvious solution.
However, as per OWS principles and right to privacy, it is better off not to store profile pictures on a central server, atleast not in raw unencrypted format.
A possible solution to that would be, all the profile pictures can be first modified by applying some image processing scrambling algorithm such that it changes entirely the content and visual image in an unidentifiable way, and then stored on server side.
Now for every person to see that profile picture would need downloading that scrambled image from server and to unscramble it with a common seed and a key that is unique to every contact.
Since it requires a lot of stages and suppose 10 contacts have changed profile picture the next time you open chat client, for each of the 10 contacts the process of unscrambling would be performed and finally you can have a profile picture feature similar to whatsapp without compromising privacy. However very laggy for native device to divote processing resources.
Part of this is probably perceptual (remember that WhatsApp's equivalent
of our dark blue is their first check mark).
However, if folks are interested in improving performance on the client
side, the first thing you'd need to do is measure the existing
performance. I'd recommend using something like TimingLogger to
instrument the entire message flow, from tapping 'send' to the message
being marked as sent.
- moxie
Post by Omar eMoxie suggested posting this to the mailing list, so here I am.
I have noticed (and so have all my friends) that textsecure is much
slower than any other IM. I have been wondering what is the cause. This
- I type a message, then hit send
- some instants pass (sometimes almost a whole second, rarely more than
that)
- the message appears in the conversation
- after some more instants the message gets first marked as delivered
and then (after some more instants) colored as sent.
Now, even overlooking the fact that messages are supposed to be marked
as delivered after having been colored as sent... it does take a while
for messages to go through. The feel is that the messaging is not
instant. At all. And if you've ever had a long conversation that goes
back and forth really fast with someone, you've probably experienced the
awkward feeling of desiring the app to be "just a little faster".
Whatsapp is waaay faster.
- You type a message, hit send
- message is immediately put in the conversation, and almost
instantaneously it gets all the check marks of all the possible fancy
colors etc..
It just feels like you're talking to people in real time.
Now, why isn't textsecure the same? Is it because you have less servers
than suitable? Or is it because of the encryption that the whole sending
thing is slowed down? Or is it something else? Whatever it is, it needs
being fixed fast. My friends who used to complain because it was "ugly"
now complain because they can't set up profile pictures and because it's
"so slow". (Of course they also complain about group chat, since all
they get are error messages saying weird things in nerdglish. So those
are the top three things to fix in my experience)
Thanks
--
http://www.thoughtcrime.org <http://www.thoughtcrime.org/>