mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-05 21:34:11 +08:00
之前的NO_REUSE并没有去掉重用,现在去掉了,快了30%。。。
This commit is contained in:
parent
491141bf94
commit
5ebede3a4e
@ -50,7 +50,8 @@ const findIndex = (t, tr, tlen) => {
|
||||
const read = (cht, info, order) => {
|
||||
let state = WAIT_LOCK, token = [], line = 1;
|
||||
|
||||
let locks = [], currlock = null, retval = [];
|
||||
let locks = [], currlock = null
|
||||
const retval = [];
|
||||
|
||||
const token_str = () => { const r = token.join(""); return (token = [], r); }
|
||||
const error = msg => { throw new SyntaxError(`${msg} at line: ${line} in lock ${currlock?.name}`) }
|
||||
@ -343,9 +344,9 @@ const lade = (list, info, order) => {
|
||||
if (cache[tr] != undefined) return cache[tr];
|
||||
else {
|
||||
const code = conv.encode(tr);
|
||||
const off = findIndex(strtable, code, size.str);
|
||||
if( off >= 0 ) cache[tr] = off;
|
||||
return off < 0 ? ut_pushtr(code) : off;
|
||||
const off = ut_pushtr(code);
|
||||
cache[tr] = off;
|
||||
return off;
|
||||
}
|
||||
}
|
||||
})() : tr => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user