Script: don't query the clock when parsing a script. This actually shows up in Android performance profiles.

This commit is contained in:
Mike Hearn 2015-03-13 17:10:31 -07:00
parent 596d6f9d88
commit 8c414fb172

View File

@ -101,7 +101,7 @@ public class Script {
public Script(byte[] programBytes) throws ScriptException { public Script(byte[] programBytes) throws ScriptException {
program = programBytes; program = programBytes;
parse(programBytes); parse(programBytes);
creationTimeSeconds = Utils.currentTimeSeconds(); creationTimeSeconds = 0;
} }
public Script(byte[] programBytes, long creationTimeSeconds) throws ScriptException { public Script(byte[] programBytes, long creationTimeSeconds) throws ScriptException {