-
Notifications
You must be signed in to change notification settings - Fork 13
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
optimization for fromCharCode usage #35
Labels
Comments
I think I understand what you mean, but could you please post an example here, just to be sure? |
currently, "f中中" cost 5568 chars, but "f"+"中中" only cost 5237 chars. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, when
fromCharCode
orfromCodePoint
is used, the whole string is converted into decimal codepoint even if the string begin or ended with simple characters (numbers, 'N','a','d','e','f','i','l','n','r','s','t','u'). Using "+" to attach those simple characters on head or end of string genetated byfromCharCode
can shorten generated code.The text was updated successfully, but these errors were encountered: