Closed Bug 1060768 Opened 10 years ago Closed 9 years ago

[TSF] switching tab is slightly laggy

Categories

(Core :: Widget: Win32, defect)

34 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: alice0775, Unassigned)

References

Details

(Keywords: perf, regression)

Attachments

(1 file)

Steps To Reproduce:
1. Open newTab(setting blank) with clicking + icon or Ctrl+T
2. Repeat step 1

Actual Results:
引っかかる
[Tracking Requested - why for this release]:

Oops, accidentally send


Actual Results:
slow(lagged)

WORKAROUND
intl.tsf.enable = false helps


Regression window(m-c)
Good:
https://hg.mozilla.org/mozilla-central/rev/25bf2f1664e9
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140804130425
Bad:
https://hg.mozilla.org/mozilla-central/rev/7f81be7db528
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140804131527
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=25bf2f1664e9&tochange=7f81be7db528

Regression window(m-i)
Good:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5ca6da63f025
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140803183130
Bad:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ad532252ff9e
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140803183229

Regressed by: 
ad532252ff9e	Masayuki Nakano — Bug 1037328 Enable TSF mode in default settings of Nightly builds r=jimm+emk+m_kato
Blocks: 1037328
OS: Windows 7 → Windows 8.1
Summary: [TSF] Opening new tab is slightly slow() → [TSF] Opening new tab is slightly slow(lagged)
Are you really sure that the performance is actually slower. I mean that it might be the problem of refreshing rate. I guess that when location bar gets focus, TSF perhaps queries its content and it causes flushing pending layout.
Um, I don't feel this is actually a problem in usual use cases. My environment is Win8.1 with ATOK 2014. How about you?
Win8.1 + MS IME2012.
This is very small lag(0.3-0.5sec).  
So, This is enough to mark INVALID.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
According to this log, GetTextExt() should cause flushing layout before retrieving the caret position because if layout is still pending, it returns wrong position to the TIP (ATOK 2014).
(In reply to Alice0775 White from comment #4)
> So, This is enough to mark INVALID.

Okay, but I keep this bug in mind and if I found an idea to improve this, I'd try to fix this.
Aha, I found the laggy is for switching tab!

Tested on win8.1(VMWare player) + MSIME 2012

Steps To Reproduce:
1. Open 2 tab i.e., [about:home] [about:home] 
2. Switch tab between them

Actual Results:
The lag is noticeable if TSF enabled
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Summary: [TSF] Opening new tab is slightly slow(lagged) → [TSF] switching tab is slightly laggy
This bug shouldn't block any release because TSF mode is enabled only on Nightly.
Hmm, I don't feel slow with the STR in comment 7. Do you have some other STRs?
Status: REOPENED → UNCONFIRMED
Ever confirmed: false
Flags: needinfo?(alice0775)
I am not sure but it seems to be depended on CPU power...


Another Steps To Reproduce:
1. Open 4-8 tab i.e., [about:home] [about:home] ...
2. Switch tab between them, i.e., press Ctrl+TAB and hold

Actual Results:
Laggy or
Tab would not be switched until key up.

Expected results:
While you hold down the Ctrl+TAB key, the tabs should be switched sequentially.
Flags: needinfo?(alice0775)
(In reply to Alice0775 White from comment #10)
> I am not sure but it seems to be depended on CPU power...
> 
> 
> Another Steps To Reproduce:
> 1. Open 4-8 tab i.e., [about:home] [about:home] ...
> 2. Switch tab between them, i.e., press Ctrl+TAB and hold
> 
> Actual Results:
> Laggy or
> Tab would not be switched until key up.

I think that each symptoms may be caused by other bugs...

> Expected results:
> While you hold down the Ctrl+TAB key, the tabs should be switched
> sequentially.

Works fine to me with either MS-IME or ATOK 2015 on Windows 8.1.


Hi, guys, do you reproduce this bug on your environment?
I cannot reproduce this on Windows 8.1 + Microsoft IME + Nightly.

- Step
1. Open about:home on 8 tabs
2. Switch tab by ctrl+tab

- Result
I can switch tab quickly.  Although I repeat step 2, I cannot reproduce...
Thank you, Kato-san. I think that this shouldn't block to enable TSF mode in release build until somebody finds the exact conditions and/or bottleneck of the performance from profile or something.

Alice-san, if you can profile it, let us know the result.
https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler
No longer blocks: 478029
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: