Specifying the encoding format as string incurs a lookup for every call of decode.
We can pull it out to one lookup and an instance check, gaining some more performance in the default cases.
This is an offshoot of #37, but since we agreed to split the changes to separate PRs, I thought having a related issue to track it would be appropriate.
Specifying the encoding format as string incurs a lookup for every call of decode.
We can pull it out to one lookup and an instance check, gaining some more performance in the default cases.
This is an offshoot of #37, but since we agreed to split the changes to separate PRs, I thought having a related issue to track it would be appropriate.