News for hackers. Stuff that matters.
Re:A Python Optimization Anecdote by bjoernbu on Tuesday October 25, 2011 @12:25PM (#3154638)
since there are only ascii chars in the whitelist you could just declare an array of size 256 (doesn't really matter if it's a bitvector or char array, int array or whatever) and replace in WHITELIST by

    return (CHAR_MAP_ARRAY[c] = 'y')
Any UTF-8 start or follow byte shoudl be > 128 where there should always be values indicating false

There are no comments on this comment yet.