Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegularParser block tokens #61

Merged
merged 1 commit into from
Feb 1, 2018
Merged

Conversation

thunderer
Copy link
Owner

@thunderer thunderer commented Jan 30, 2018

Tokenizer in RegularParser broke down the text into single characters or words (with some exceptions) regardless of the token type. This PR improves the tokenizer regex to report the text fragments without syntax tokens as single string tokens which should improve performance and reduce idle string joining operations in the parsing process, especially in real-world use cases with long texts with few shortcodes inside.

@thunderer thunderer added this to the 0.6 milestone Jan 30, 2018
@thunderer thunderer self-assigned this Jan 30, 2018
…ingle string instead of each character separately
@thunderer thunderer merged commit a699886 into master Feb 1, 2018
@thunderer thunderer deleted the regular-parser-block-tokens branch February 1, 2018 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant