Page MenuHomePhabricator

[lib] Avoid unnecessary Set construction in RadixTree.getAllMatchingExactly
ClosedPublic

Authored by ashoat on Oct 31 2023, 5:05 AM.
Tags
None
Referenced Files
F2644404: D9647.diff
Mon, Sep 9, 2:22 PM
Unknown Object (File)
Sat, Sep 7, 10:48 PM
Unknown Object (File)
Sun, Sep 1, 6:54 PM
Unknown Object (File)
Aug 9 2024, 9:18 PM
Unknown Object (File)
Aug 9 2024, 9:18 PM
Unknown Object (File)
Aug 9 2024, 9:18 PM
Unknown Object (File)
Aug 9 2024, 9:16 PM
Unknown Object (File)
Jul 19 2024, 12:27 PM
Subscribers

Details

Summary

Noticed this after landing the diff here. The underlying data is a Set anyways, so all this does it copy the Set. We don't return the original Set anyways, so there is no point to this.

Depends on D9646

Test Plan

Flow, careful code inspection

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage