-
Type:
Task
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
None
-
b82
Array-like access of characters in a string is currently very slow in Nashorn because it is done by the generic ScriptObject accessors and involves creation of a temporary NativeString wrapper.
It would be better to check whether a key is a valid index for the given string and only fall back to NativeString if it is not.
It would be better to check whether a key is a valid index for the given string and only fall back to NativeString if it is not.