Open Bug 789598 Opened 12 years ago Updated 2 years ago

Too much time spent in analyzeBytecode in gmail onfocus handler.

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: jrmuizel, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [js:p2] [platform-rel-Google] [platform-rel-Gmail])

http://people.mozilla.com/~bgirard/cleopatra/?report=88070caedf63c1660c7080a938420c00e4f363e3 This profile shows a fair amount of time being spent in analyzeBytecode. In the onfocus handler of gmail. If I had to guess it seems like we're probably doing more work analyzing than we are running.
Blocks: tabswitch
Whiteboard: [js:p2]
We need to analyzeBytecode every script when it first runs, so that we can pick up type information about the results of each property access. In places where scripts get cloned / run across many globals then, yeah, analyzing takes longer than running. This restriction will be removed by bug 804676.
Depends on: 804676
Now that the dependency is resolved, could someone work on this bug please ? opening a new gmail tab still hangs for about a second. Profile : http://people.mozilla.com/~bgirard/cleopatra/#report=2b8b0599fa16ca9740d8a8f87e72006d329ffcc8
(In reply to mayankleoboy1 from comment #2) > Now that the dependency is resolved, could someone work on this bug please ? > opening a new gmail tab still hangs for about a second. > > Profile : > http://people.mozilla.com/~bgirard/cleopatra/ > #report=2b8b0599fa16ca9740d8a8f87e72006d329ffcc8 So that profile shows a bunch of time spent in a bunch of places. There's time spent in js execution and reflow etc.
Assignee: general → nobody
Whiteboard: [js:p2] → [js:p2] [platform-rel-Google] [platform-rel-Gmail]
platform-rel: --- → ?
platform-rel: ? → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.