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
F2724479: D9647.id32532.diff
Mon, Sep 16, 10:56 PM
Unknown Object (File)
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
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable