WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
226644
Avoid wasteful large allocation in SpeechRecognitionRemoteRealtimeMediaSource::setStorage()
https://bugs.webkit.org/show_bug.cgi?id=226644
Summary
Avoid wasteful large allocation in SpeechRecognitionRemoteRealtimeMediaSource...
Chris Dumez
Reported
2021-06-04 08:41:58 PDT
Avoid wasteful large allocation in SpeechRecognitionRemoteRealtimeMediaSource::setStorage(). setStorage() sets m_buffer's size to the same size as the RingBuffer (2*sampleRate), only to resize it to the size of the rendering quantum (512) later in SpeechRecognitionRemoteRealtimeMediaSource::remoteAudioSamplesAvailable().
Attachments
Patch
(1.98 KB, patch)
2021-06-04 08:43 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2021-06-04 08:43:48 PDT
Created
attachment 430582
[details]
Patch
EWS
Comment 2
2021-06-04 10:14:31 PDT
Committed
r278471
(
238489@main
): <
https://commits.webkit.org/238489@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 430582
[details]
.
Radar WebKit Bug Importer
Comment 3
2021-06-04 10:15:21 PDT
<
rdar://problem/78874517
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug