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
Unknown Object (File)
Fri, Jul 19, 12:27 PM
Unknown Object (File)
Sun, Jul 7, 1:41 PM
Unknown Object (File)
Jun 26 2024, 8:56 PM
Unknown Object (File)
Jun 26 2024, 3:04 PM
Unknown Object (File)
Jun 25 2024, 11:56 PM
Unknown Object (File)
Jun 24 2024, 2:54 AM
Unknown Object (File)
Jun 24 2024, 2:54 AM
Unknown Object (File)
Jun 24 2024, 2:53 AM
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