Closed Bug 1049392 Opened 11 years ago Closed 10 years ago

[tarako]Music player cold start, loading a list of 200 songs, the time it costs is about 4s.

Categories

(Firefox OS Graveyard :: Gaia::Music, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v1.3T affected)

RESOLVED INVALID
Tracking Status
b2g-v1.3T --- affected

People

(Reporter: jingmei.zhang, Unassigned)

Details

(Keywords: perf)

1.put about 200 songs into the SDcard 2.cold start the music.cold start means the first time we start the music after the phone is power on. 3.record the time from the time we tap the music icon to the Titleview is loaded. the whole process costs about 4s.it is a little long.
I divide the whole time into three part: 1.the time costs by the app launch.we can get it by turned the 'show time to load' on in settings/more informations/develper 2.the time costs by the dom tree update in the init of the music.I put a begin trace in >music.js/function init and a end trace at :music.js >musicdb.onready: >showCurrentView(function() { > // Hide the spinner once we've displayed the initial screen > console.log('zjm-progress-hidden'); >document.getElementById('spinner-overlay').classList.add('hidden'); 3.render the Titleview. I test five times in my locale,and the ave time costed in each part is: app launch:1.022s dom tree update:1.185s render the Titleview:2.1s
hi Dominic: can you help check the issue??
Flags: needinfo?(dkuo)
(In reply to jingmei.zhang from comment #2) > hi Dominic: > > can you help check the issue?? Jingmei, would you please provide the time for not cold start? it sound possible the cold start time could be slow because it's the first launch after the device it booted, thanks.
Flags: needinfo?(dkuo) → needinfo?(jingmei.zhang)
(In reply to Dominic Kuo [:dkuo] from comment #3) > Jingmei, would you please provide the time for not cold start? it sound > possible the cold start time could be slow because it's the first launch > after the device it booted, thanks. hi Dominic: The time for not cold start is listed as follows: app-launch dom-tree-update render-the-Titleview totle-time 1 0.736 0.83 1.634 3.2 2 0.84 0.87 1.39 3.1 3 0.937 0.83 1.533 3.3 4 0.856 0.71 1.734 3.3 5 0.861 0.81 1.529 3.2
Flags: needinfo?(jingmei.zhang)
The time costs in render the Titleview is a little more. What's more,in the dom tree update,we load all the songs in the indexDB no matter we need them or not right now.
Closing this, since it's Tarako-only. Feel free to reopen if you think it's still important.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.