Closed Bug 820104 Opened 13 years ago Closed 12 years ago

unnecessary inefficient trigonometry for computing waveforms for dialer

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(blocking-basecamp:-)

RESOLVED INVALID
blocking-basecamp -

People

(Reporter: djf, Assigned: djf)

Details

The dialer computes the waveform for every tone it generates from scratch with no trig lookup tables or other clever hacks. For every 150ms of sound it plays, it is making 2400 calls to Math.sin(). I actually have no idea what kind of impact that has on the CPU. Maybe it is trivial, but we could make this much more efficient. I'm going to nominate this as blocking and assign it to myself because I have fun doing this kind of math.
Assignee: nobody → dflanagan
blocking-basecamp: --- → ?
Triage: BB-. Please renominate if there is any major user impact.
blocking-basecamp: ? → -
Blocks: 832842
No longer blocks: 832842
Is this still a problem now that we use the web audio api (and that we might switch to pre-generated sounds)?
Flags: needinfo?(etienne)
(In reply to Anthony Ricaud (:rik) from comment #2) > Is this still a problem now that we use the web audio api (and that we might > switch to pre-generated sounds)? In anyway this is not an issue anymore, since we have the cool oscillator nodes in WebAudio :)
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(etienne)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.