| Summary: | Avoid heap allocation under AudioWorkletNode::process() | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||
| Component: | Web Audio | Assignee: | Chris Dumez <cdumez> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, darin, eric.carlson, ews-watchlist, ggaren, glenn, jer.noble, peng.liu6, philipj, sergio, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 223226 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Chris Dumez
2021-03-18 10:33:19 PDT
Created attachment 423615 [details]
Patch
Comment on attachment 423615 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423615&action=review > Source/WebCore/ChangeLog:8 > + Always use arrays of size 128 (render quantum) for AudioParam values. We use to Nit. s/use to/used to/g Created attachment 423650 [details]
Patch
Comment on attachment 423650 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423650&action=review > Source/WebCore/ChangeLog:26 > + behavior is thus consistant with Blink. consistent > Source/WebCore/Modules/webaudio/AudioWorkletNode.cpp:215 > + std::fill(paramValues->data(), paramValues->data() + framesToProcess, audioParam->finalValue()); How about using std::fill_n instead? Created attachment 423659 [details]
Patch
Committed r274677: <https://commits.webkit.org/r274677> All reviewed patches have been landed. Closing bug and clearing flags on attachment 423659 [details]. |