Closed tomato42 closed 6 years ago
https://github.com/ansasaki/smap/blob/608f590b98a1ad2e12c078974eafeef8f4aa58fa/src/smap/symver.py#L810-L823
searching in arrays has complexity of O(n), both seen and release_dups could be sets here, as searching them has complexity of O(log n)
seen
release_dups
arranging for symbols to not be Null would also allow us to remove the if symbols: check
symbols
Null
if symbols:
https://github.com/ansasaki/smap/blob/608f590b98a1ad2e12c078974eafeef8f4aa58fa/src/smap/symver.py#L810-L823
searching in arrays has complexity of O(n), both
seen
andrelease_dups
could be sets here, as searching them has complexity of O(log n)arranging for
symbols
to not beNull
would also allow us to remove theif symbols:
check