misc: Use a combined PPPredicateObjectParser for a small gain
This gives 3ms on parsing 'b787f1fbc9a864af6975d9f59ac49ef1.1401736687'
This commit is contained in:
parent
3854696d53
commit
06caf1ef1a
|
@ -670,9 +670,9 @@ PP.PPCompositeParser subclass: SIPGrammar [
|
|||
token [
|
||||
<category: 'generic'>
|
||||
|
||||
^ (#letter asParser /
|
||||
(PP.PPPredicateObjectParser chars: '0123456789-.!%*_+`''~' message: 'token'))
|
||||
plus flatten
|
||||
^ (PP.PPPredicateObjectParser on: (PP.PPCharSetPredicate on:
|
||||
[:char | char isAlphaNumeric or: [
|
||||
'-.!%*_+`''~' includes: char]]) message: 'token') plus flatten
|
||||
]
|
||||
|
||||
header_name [
|
||||
|
|
Reference in New Issue