stratacode / issues

Empty StrataCode project to store github issues
0 stars 0 forks source link

Parselets - repeating sequence of strings could be optimized #24

Closed jeffvroom closed 10 years ago

jeffvroom commented 10 years ago

For this definition:

Sequence varIdentifier = new Sequence("('','',)",startIdentifierChar, new Sequence("('')", REPEAT | OPTIONAL, identifierChar), spacing)

we end up generating a ParentParseNode which stores each character as a separate StringToken. We should avoid the parse-nodes altogether for string value elements (where the string value exactly matches the semantic node's value at least).

jeffvroom commented 10 years ago

Replaced the repeating sequence with a repeating symbol and it sped things up across the board a few percent.