DescriptionOptimize latin1-decoder.
Instead of checking "allowInvalid" inside the innermost loop, create two
different classes.
Speeds up both cases significantly.
BUG= http://dartbug.com/17659
R=ajohnsen@google.com
Committed: https://code.google.com/p/dart/source/detail?r=39022
Patch Set 1 #Patch Set 2 : Also check for negative inputs. #
Total comments: 1
Patch Set 3 : Change the test order, so the most commen error case is first. #Messages
Total messages: 4 (0 generated)
|