PyTd
PyTd copied to clipboard
Exit early for STRING datatypes
Two small performance improvements:
- In
convertValue, iftypeCodeisSTRINGthe longif...elif...elsesequence is short-circuited. - Lists of types (
NUMBER_TYPES,INT_TYPES, etc. are cast to sets for O(1) lookups.
Good catch! Should be fixed now.