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

Use byte range instead of char count for delim run bounds #956

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

notriddle
Copy link
Collaborator

These are the same, because delims are always ASCII, so it reduces the amount of work spent on UTF-8 decoding. It still needs to check for char boundaries, but does not need to check each one in the middle.

These are the same, because delims are always ASCII, so
it reduces the amount of work spent on UTF-8 decoding.
It still needs to check for char boundaries, but does
not need to check each one in the middle.
@Martin1887 Martin1887 merged commit 64cdb1e into pulldown-cmark:master Sep 10, 2024
7 checks passed
@notriddle notriddle deleted the char-count branch September 10, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants