Closed john-kurkowski closed 11 months ago
Re: space, at least in the test suite, not necessarily production usage, in main_test.py, memory usage does go up 8%, from 34MB to 37MB on average.
Re: speed, using timeit
and a hardcoded domain string, I see execution time go down 2-5% on CPython 3.11.
I want this change for future compatibility. I'm not seeing many downsides, besides the breaking change of no longer allowing accessing indexing and slicing tuple members, as there is no longer a tuple. This will be marked a breaking change.
Changes the type of this library's core type
ExtractResult
fromnamedtuple
todataclass
.The bugfix in #300 was not the breaking change I wanted. It resulted in #305. This PR is to:
Open Issues