Comapre approaches to validate text data.
validateInput
multi traversing of elemvalidateInputAtto
usual Attoparsec parservalidateInputOptimized
refactored first approach.Elem
shrinked.validateInputTextIcu
regex withPCRE
. It has icu library build issue. Hence it turned off.validateInputRegexPosix
regex withPosix
validateInputRegexTDFA
regex withPosix
validateInputRegexPCRE
regex withPosix
Compare generic show
against approach using unpack
.
Unpack
(from Text to String) reduces operation speed in 6-7 times.
Compare overheads of using fromList
which nub duplicates.
And traversinf with predicate.
fromList
decrease performance to 14-30 times.