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
Any UTF-8 start or follow byte shoudl be > 128 where there should always be values indicating false
[ Parent
| on HN ]
There are no comments on this comment yet.