JScrewIt
JScrewIt copied to clipboard
optimization for fromCharCode usage
Currently, when fromCharCode or fromCodePoint 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 by fromCharCode can shorten generated code.
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.