Bug 250524 - Fix nit which is inefficient sequence to deleteMarkedNodes
Summary: Fix nit which is inefficient sequence to deleteMarkedNodes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-12 13:15 PST by Ahmad Saleem
Modified: 2023-01-14 11:54 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2023-01-12 13:15:57 PST
Hi Team,

While going through Blink's commit, I think we can fix inefficient sequence as well:

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/ec81c8eb26580fce076c096c13463d754f40e6c3

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp#179

Move this below:

m_nodesToDelete = std::exchange(m_nodesMarkedForDeletion, { });
---> here

Just wanted to raise so we can fix this.

Thanks!
Comment 1 EWS 2023-01-14 11:53:25 PST
Committed 258920@main (6eceb6d922f3): <https://commits.webkit.org/258920@main>

Reviewed commits have been landed. Closing PR #8590 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2023-01-14 11:54:17 PST
<rdar://problem/104263455>