Sped union by a factor of 3-4.
This commit is contained in:
parent
d33e6be59d
commit
37faed2532
|
@ -154,7 +154,8 @@ class BaseSet(object):
|
|||
"""
|
||||
if not isinstance(other, BaseSet):
|
||||
return NotImplemented
|
||||
result = self.__class__(self._data)
|
||||
result = self.__class__()
|
||||
result._data = self._data.copy()
|
||||
result._data.update(other._data)
|
||||
return result
|
||||
|
||||
|
|
Loading…
Reference in New Issue