diff --git a/lib/converter/converter.js b/lib/converter/converter.js index fed6095d..c81d4723 100644 --- a/lib/converter/converter.js +++ b/lib/converter/converter.js @@ -1552,6 +1552,8 @@ const convertV8List = (v8list, options) => { rangeCache: new Map(), diffCache: new Map(), // cacheHits: 0, + // textLength: [], + // coverage info bytes: [], functions: [], @@ -1580,6 +1582,11 @@ const convertV8List = (v8list, options) => { // stateList.forEach((st) => { // console.log('diffCache', st.diffCache.size, 'cacheHits', st.cacheHits); + // const textLength = st.textLength; + // console.log('< 50', textLength.filter((v) => v < 50).length); + // console.log('< 80', textLength.filter((v) => v < 80).length); + // console.log('< 100', textLength.filter((v) => v < 100).length); + // console.log('< 500', textLength.filter((v) => v < 500).length); // }); Util.logTime(` ┌ [convert] converted data list (${dataFiles})`, time_start_convert); diff --git a/lib/converter/find-original-range.js b/lib/converter/find-original-range.js index 1d68a30e..1907f94d 100644 --- a/lib/converter/find-original-range.js +++ b/lib/converter/find-original-range.js @@ -161,8 +161,16 @@ const getAlignPosition = (info, direction) => { const gp = info.generatedPos; const ot = info.originalText; + + // < 50 338819 + // < 80 359473 + // < 100 362796 + // < 500 366490 + // info.state.textLength.push(gt.length); + // info.state.textLength.push(ot.length); + // there is no need to align for long text - const maxLength = 500; + const maxLength = 100; if (gt.length > maxLength || ot.length > maxLength) { // console.log(gt.length, ot.length, gp); return;