Closed Bug 1083603 Opened 10 years ago Closed 6 years ago

Opening keyboard is laggy

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: cjones, Unassigned)

References

Details

Attachments

(1 file)

It takes about 5-10 seconds to pop up.  Part of the slowness might be gfx issues.  I see it's OOP now, so another option is to move it back in-process.
(In reply to Chris Jones [:cjones] temporarily active; ni?/f?/r? if you need me from comment #0)
> I see it's OOP now, so another option is to move it back in-process.

Moving it in-process doesn't help.  If anything it's a little laggier, even.  (Yay!)

I wrote a patch to optionally disable the keyboard and that helps.  However the patch didn't make me happy, and we'll want to use touchscreens with RPi so we don't know a priori which configuration we want.  So I think I'm going to drop this work for now.
Did you try to turn on debug flag in KeyboardManager and keyboard/js/console.js to see the timing of each call?
Flags: needinfo?(cjones.bugs)
Nope ... what information would I be looking for?  It just takes a while for the keyboard itself to open.  I may not have time to look really deeply at this, but can run simple experiments.
Flags: needinfo?(cjones.bugs)
(In reply to Chris Jones [:cjones] temporarily active; ni?/f?/r? if you need me from comment #3)
> Nope ... what information would I be looking for?  It just takes a while for
> the keyboard itself to open.  I may not have time to look really deeply at
> this, but can run simple experiments.

I just thought logging would be helpful to find out what really makes the keyboard slow.

https://github.com/mozilla-b2g/gaia/blob/54036558c12df2f87/apps/system/js/keyboard_manager.js#L59
https://github.com/mozilla-b2g/gaia/blob/54036558c12df2f87/apps/keyboard/js/keyboard/console.js#L35
Unfortunately console.timeEnd() only prints "TIMEEND" in the log without the timestamp! But it looks like Search app (pid=363) is being loaded when the keyboard is working hard rendering.

If you change the KeyboardConsole#timeEnd() have it console.log() the time calculated with Date.now() we might be able to find where it got slowed down.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: