-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Optimize Cursor implementation #675
Comments
Seems to be why my page takes a little longer to load with multi-byte characters. Is there any specific reason for mbstring to process markdown? IIRC the syntax is all ASCII... |
Although you're correct that the syntax is ASCII, how that syntax is interpreted depends on the context where it is used. The CommonMark specification says that Unicode whitespace and punctuation characters are significant when determining that context. For example:
(emphasis added) So we do need the ability to parse individual Unicode codepoints to properly handle the syntax - I guess the question is "how do we best do that?" |
It may be possible to optimize the
Cursor
implementation by relying more heavily on byte positions internally than character positions. It's possible that character positions could be eliminated completely if they aren't entirely needed by external code, or perhaps we could track both for convenience but only rely on byte positions internally.The text was updated successfully, but these errors were encountered: