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)
Tracking
(blocking-b2g:koi+, b2g-v1.2 fixed)
| 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.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → lchang
Updated•12 years ago
|
blocking-b2g: --- → koi?
Priority: -- → P2
Whiteboard: [FT: System Platform], [Sprint: 3]
| Assignee | ||
Comment 1•12 years ago
|
||
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.
| Assignee | ||
Comment 2•12 years ago
|
||
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 3•12 years ago
|
||
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+
| Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 803534 [details]
Pull Request
I've updated my patch.
Thanks for your comments, Rudy.
Attachment #803534 -
Flags: feedback+ → review?(rlu)
Comment 5•12 years ago
|
||
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=]
Comment 6•12 years ago
|
||
Definitely need to fix, but not blocking 1.2 on it as we're not shipping in China for this release.
blocking-b2g: koi? → -
Comment 7•12 years ago
|
||
Ah and that requirement is up in the air, actually. Either way, it's "strongly desired" not "must have", so still not blocking+.
Comment 8•12 years ago
|
||
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+
Comment 9•12 years ago
|
||
Luke,
Please help rebase your patch onto master to trigger travis and then you may merge this pull request yourself.
Thanks.
Flags: needinfo?(lchang)
| Assignee | ||
Comment 10•12 years ago
|
||
Rudy,
I've rebased my patch and will merge this pull request after travis passed.
Thanks for your review.
Flags: needinfo?(lchang)
| Assignee | ||
Comment 11•12 years ago
|
||
travis passed:
https://travis-ci.org/mozilla-b2g/gaia/builds/12648801
merged in gaia master:
https://github.com/mozilla-b2g/gaia/commit/4da866ea74c30cda886f6c306cfba9d27d193aa9
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 12•12 years ago
|
||
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)
Updated•12 years ago
|
Whiteboard: [FT: System Platform], [Sprint: 3] [c= p= s= u=] → [FT: System Platform], [Sprint: 3] [c= p= s=2013.10.25 u=]
| Assignee | ||
Comment 13•12 years ago
|
||
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)
Comment 14•12 years ago
|
||
(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)
Updated•12 years ago
|
status-b2g-v1.2:
--- → affected
Comment 15•12 years ago
|
||
Uplifted 4da866ea74c30cda886f6c306cfba9d27d193aa9 to:
v1.2: f15d846d6a510132272bc878dee47b6c330c00d1
Comment 16•12 years ago
|
||
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)
Comment 17•12 years ago
|
||
Setting Target Milestone for all FxOS Perf 1.2 issues fixed for 10.25.
Target Milestone: --- → 1.2 C3(Oct25)
Updated•12 years ago
|
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]
Updated•12 years ago
|
Flags: needinfo?(bhuang)
You need to log in
before you can comment on or make changes to this bug.
Description
•