Open tetraptych opened 7 years ago
Two small performance improvements:
convertValue
typeCode
STRING
if...elif...else
NUMBER_TYPES
INT_TYPES
Good catch! Should be fixed now.
Two small performance improvements:
convertValue
, iftypeCode
isSTRING
the longif...elif...else
sequence is short-circuited.NUMBER_TYPES
,INT_TYPES
, etc. are cast to sets for O(1) lookups.