-
Bug
-
Resolution: Fixed
-
P3
-
8u40
-
b13
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045100 | 8u25 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8042586 | 8u20 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b15 |
JDK-8052501 | emb-8u26 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b18 |
http://mail.openjdk.java.net/pipermail/nashorn-dev/2014-April/002920.html
Dears
I found if the script is evaled with binding, the execution time increased
a lot.
Do you know the reason?
Check this
String script_text = "var a = 1";
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
CompiledScript script = ((Compilable) engine).compile(script_text);
Bindings bindings = engine.createBindings();
long dt = new Date().getTime();
for (int i = 0; i < 100000; i++) {
script.eval();
//script.eval(bindings); // switch to this line and feel the
slow speed,
}
System.out.println(new Date().getTime() - dt);
--
Best wishes
GAO
Dears
I found if the script is evaled with binding, the execution time increased
a lot.
Do you know the reason?
Check this
String script_text = "var a = 1";
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
CompiledScript script = ((Compilable) engine).compile(script_text);
Bindings bindings = engine.createBindings();
long dt = new Date().getTime();
for (int i = 0; i < 100000; i++) {
script.eval();
//script.eval(bindings); // switch to this line and feel the
slow speed,
}
System.out.println(new Date().getTime() - dt);
--
Best wishes
GAO
- backported by
-
JDK-8042586 CompiledScript slower when eval with binding
-
- Resolved
-
-
JDK-8045100 CompiledScript slower when eval with binding
-
- Resolved
-
-
JDK-8052501 CompiledScript slower when eval with binding
-
- Resolved
-