Bug 216279

Summary: Fix precision issues in AudioParamTimeline when event times are very close
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 212611    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Chris Dumez 2020-09-08 11:49:16 PDT
Fix precision issues in AudioParamTimeline when event times are very close.
Comment 1 Chris Dumez 2020-09-08 11:57:09 PDT
Created attachment 408250 [details]
Patch
Comment 2 Darin Adler 2020-09-08 12:06:28 PDT
Comment on attachment 408250 [details]
Patch

I see that the code involves a lot of floating point division. Last time I checked, I believe floating point multiplication was significantly faster. Perhaps we can make some of this division be multiplication by calculating a reciprocal or by reorganizing expressions. Or perhaps this kind of micro-optimization thinking is not relevant to this code.

r=me assuming the tests pass
Comment 3 Chris Dumez 2020-09-08 12:11:35 PDT
Created attachment 408252 [details]
Patch
Comment 4 Chris Dumez 2020-09-08 12:42:59 PDT
Created attachment 408255 [details]
Patch
Comment 5 EWS 2020-09-08 13:24:38 PDT
Committed r266746: <https://trac.webkit.org/changeset/266746>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 408255 [details].
Comment 6 Radar WebKit Bug Importer 2020-09-08 13:25:28 PDT
<rdar://problem/68526735>