Closed Bug 900906 Opened 12 years ago Closed 12 years ago

[Keyboard] Wrap the pinyin IME engine with web worker to improve the user experience

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect, P2)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:koi+, b2g-v1.2 fixed)

RESOLVED FIXED
1.2 C3(Oct25)
blocking-b2g koi+
Tracking Status
b2g-v1.2 --- fixed

People

(Reporter: lchang, Assigned: lchang)

References

Details

(Keywords: perf, Whiteboard: [FT: System Platform], [Sprint: 3] [c= p= s=2013.10.25 u=1.2])

Attachments

(1 file)

We want to prevent blocking user input when the IME engine is searching candidates.
Blocks: 902361
Assignee: nobody → lchang
Blocks: 905540
No longer blocks: 902361
blocking-b2g: --- → koi?
Priority: -- → P2
Whiteboard: [FT: System Platform], [Sprint: 3]
Depends on: 900907
After Bug 905530 is landed, we will meet a problem that indexedDB can't be accessed in web workers (see Bug 701634). Since the current performance with "setTimeout" machanism looks good enough for user story, I propose land user dictionary in v1.2 first and resolve this issue right after.
Attached file Pull Request
We're unable to aware how many layouts in keyboard app are enabled from settings after the new keyboard manager is landed, therefore, we won't know when is the best timing to "uninit" an unused layout engine. In this case, I propose that put a "setTimeout" in "engine.deactivate()" to unload itself when it has been idle for a while (as "latin" engine did).
Attachment #803534 - Flags: review?(rlu)
Comment on attachment 803534 [details] Pull Request Looks good. Just leave some comments on github and please help set the review flag back when they are addressed. Thanks, Luke.
Attachment #803534 - Flags: review?(rlu) → feedback+
Comment on attachment 803534 [details] Pull Request I've updated my patch. Thanks for your comments, Rudy.
Attachment #803534 - Flags: feedback+ → review?(rlu)
Bruce, Is the Systems Platform Team commiting to this for koi (1.2)? Please update the blocking-b2g flag to either "koi+" or "-" if you're not committing to 1.2 delivery.
Status: NEW → ASSIGNED
Flags: needinfo?(bhuang)
Keywords: perf
Whiteboard: [FT: System Platform], [Sprint: 3] → [FT: System Platform], [Sprint: 3] [c= p= s= u=]
Definitely need to fix, but not blocking 1.2 on it as we're not shipping in China for this release.
blocking-b2g: koi? → -
Ah and that requirement is up in the air, actually. Either way, it's "strongly desired" not "must have", so still not blocking+.
Comment on attachment 803534 [details] Pull Request r+, thanks for this improvement. I personally would want this to get into v1.2 since this will improve the UI response when we switch the layout into Pinyin from other lang. layouts.
Attachment #803534 - Flags: review?(rlu) → review+
Luke, Please help rebase your patch onto master to trigger travis and then you may merge this pull request yourself. Thanks.
Flags: needinfo?(lchang)
Rudy, I've rebased my patch and will merge this pull request after travis passed. Thanks for your review.
Flags: needinfo?(lchang)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Ivan, As Rudy mentioned, this patch could get noticeable improvements of UI response. Do we need uplift this patch to v1.2?
Flags: needinfo?(itsay)
Whiteboard: [FT: System Platform], [Sprint: 3] [c= p= s= u=] → [FT: System Platform], [Sprint: 3] [c= p= s=2013.10.25 u=]
Comment on attachment 803534 [details] Pull Request [Approval Request Comment] This patch can improve the UI response when we switch the layout into Pinyin from other lang. layouts. [Bug caused by] v1.2 feature: pinyin input method. [User impact] if declined: We may need more than 2 seconds to switch layouts between pinyin and the others. [Testing completed]: Travis passed. [Risk to taking this patch] (and alternatives if risky): Risk is low. This patch works on pinyin engine only.
Attachment #803534 - Flags: approval-gaia-v1.2?(itsay)
(In reply to Luke Chang [:lchang] from comment #13) > Comment on attachment 803534 [details] > Pull Request > > [Approval Request Comment] > This patch can improve the UI response when we switch the layout into Pinyin > from other lang. layouts. > > [Bug caused by] > v1.2 feature: pinyin input method. > > [User impact] if declined: > We may need more than 2 seconds to switch layouts between pinyin and the > others. > > [Testing completed]: > Travis passed. > > [Risk to taking this patch] (and alternatives if risky): > Risk is low. This patch works on pinyin engine only. Plus it for the performance improvement on pinyin IME
blocking-b2g: - → koi+
Flags: needinfo?(itsay)
Uplifted 4da866ea74c30cda886f6c306cfba9d27d193aa9 to: v1.2: f15d846d6a510132272bc878dee47b6c330c00d1
Comment on attachment 803534 [details] Pull Request Clearing approval nom flag. This bug has been uplifted to 1.2 via koi+
Attachment #803534 - Flags: approval-gaia-v1.2?(itsay)
Setting Target Milestone for all FxOS Perf 1.2 issues fixed for 10.25.
Target Milestone: --- → 1.2 C3(Oct25)
Whiteboard: [FT: System Platform], [Sprint: 3] [c= p= s=2013.10.25 u=] → [FT: System Platform], [Sprint: 3] [c= p= s=2013.10.25 u=1.2]
Flags: needinfo?(bhuang)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: