The Magic operation now only checks the most commonly used Internet languages by default, to lower false positives and improve performance.

This commit is contained in:
n1474335 2018-02-14 13:08:03 +00:00
parent 2bc563b693
commit 544d78f461
3 changed files with 64 additions and 48 deletions

View file

@ -267,10 +267,11 @@ const FlowControl = {
runMagic: async function(state) {
const ings = state.opList[state.progress].getIngValues(),
depth = ings[0],
extLang = ings[1],
dish = state.dish,
currentRecipeConfig = state.opList.map(op => op.getConfig()),
magic = new Magic(dish.get(Dish.ARRAY_BUFFER)),
options = await magic.speculativeExecution(depth);
options = await magic.speculativeExecution(depth, extLang);
let output = `<table
class='table table-hover table-condensed table-bordered'