Closed Bug 925463 Opened 7 years ago Closed 2 years ago

[B2G][Email/ActiveSync] First Outlook email account synchronizing takes about 10-20 seconds

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, enhancement, P3)

ARM
Gonk (Firefox OS)
enhancement

Tracking

(b2g18 affected, b2g-v1.2 affected)

RESOLVED WONTFIX
Tracking Status
b2g18 --- affected
b2g-v1.2 --- affected

People

(Reporter: mvaughan, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [c=progress p= s= u=], burirun2, burirun3)

Attachments

(1 file)

Description:
When first synchronizing an Outlook email account on the phone via ActiveSync, the sync takes roughly 10-20 seconds. When using IMAP/SMTP, the sync usually only take about 3 seconds. Gmail and Yahoo accounts take only about 3 seconds when using ActiveSync. 

Repro Steps:
1) Update Buri to Build ID: 20131010004001
2) Set up a new Outlook account on the phone
3) When at the "All done!" screen, tap "Continue to Mail"
4) Observe synchronization of Outlook account

Actual:
Synchronization of the Outlook account via ActiveSync takes roughly 10-20 seconds.

Expected:
Synchronization of the Outlook account via ActiveSync take about 2.5 seconds.

Environmental Variables
Device: Buri
Build ID: 20131010004001
Gecko: http://hg.mozilla.org/releases/mozilla-aurora/rev/3f16dc100b1f
Gaia: 51f3c79ea93bb91d3b12e50b49d203a049a94a9b
Platform Version: 26.0a2

Notes:
Repro frequency: 100%
See attached: logcat.txt
This bug does repro on the 10/09/13 1.1 build. Outlook takes about 10-20 seconds via ActiveSync,  but only about 3 seconds via IMAP/SMTP.

Environmental Variables
Build ID: 20131009041203
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/c630289d6388
Gaia: 53e2a70d85fb3748d0768218a5efffe5806073f0
Platform Version: 18.1
Keywords: perf
We're largely at the mercy of ActiveSync here.  It's an all-or-nothing sync protocol with unpredictable message return order, so we don't display anything until we've synchronized everything in the initial sync.  The likely only way to address this would be to perform an initial fake sync with a minimal time window (or use the search mechanism) to get initial messages, then do a proper background sync and swap them out under the hood.

Our likely solution to improve things most for users is to switch outlook.com/hotmail.com to IMAP from ActiveSync for Gaia v1.3 after we do some testing/dogfooding.

For the remaining ActiveSync users (mainly Exchange users), we can make sure we're trying to initiate Inbox sync as early as possible (I'm not sure that we're doing it as soon as the account setup completes with our new UI?), but we're unlikely to be able to justify the fancier options.
Severity: normal → enhancement
Whiteboard: burirun2 → burirun2, burirun3
Whiteboard: burirun2, burirun3 → [c= p= s= u=], burirun2, burirun3
Andrew,

Has any of what you proposed in comment 2 been done to address this problem in FxOS 1.3?
Flags: needinfo?(bugmail)
Whiteboard: [c= p= s= u=], burirun2, burirun3 → [c=progress p= s= u=], burirun2, burirun3
Nothing has been done.  It's unlikely we will ever do the first thing (minimal one-off sync), we will definitely do the second thing (switch to IMAP for outlook/hotmail: bug 958614) and should be able to get that done for 1.5 without trouble.  The third thing (make sure we're starting sync as early as possible) is a general thing not specific to ActiveSync that will likely be addressed when we're next in that area of code and can lock it down with tests assertions.
Depends on: 958614
Flags: needinfo?(bugmail)
Summary: [B2G][Email/ActiveSync] Outlook email account synchronizing takes about 10-20 seconds → [B2G][Email/ActiveSync] First Outlook email account synchronizing takes about 10-20 seconds
Priority: -- → P3
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.